07-05-2013 02:36 AM
I want to use Service Catalog User selection (options) to influence Request Management Line Item opening – use User selection as condition for Line Item opening.
RM bundle for Standard PC has beside PC and installation also 3 monitors (1 default monitor and 2 optional). When user selects this Item in Service Catalog he also has to make monitor selection (and according to this selection only one monitor is actually opened as a Quote Line Item.
Can these be done and how?
Solved! Go to Solution.
07-11-2013 02:53 AM
Does anybody know which Process/RAD is opening Line Items when request has been opened via Service Catalog and when this Line Items are defined?
07-11-2013 12:10 PM
We have implemented a trigger on the svcCartItem table that calls a Script Library function where we parse the XML and then based on the values in the user selection, we change the catalog id to an inactive catalog item that calls a separate bundle for each possible option. It is not very pretty but it has reduced our catalog size dramatically and sounds like it might be helpful in your situation.
We create one main catalog item and then a separate item and bundle for each option. Those that are not to be displayed are marked inactive so they don't appear in the catalog.
If this interests you, I can send you some example code to help you get started.
07-12-2013 05:18 AM
This has crossed my mind and it brings me half-way (simplifies Service Catalog). There are still many bundles remaining in RM distinguished by one or two options ... a lot to be maintained... The option would be to intercept actual LineItem creation (trigger before ocml Add) and check it against User Selection. But there is a risk of inconsistency.
The script is rather simple and I tested it with "Open New Quote" and "svc.selection" (XML) field simulation. This works perfectly ... BUT (there is always a but ...) ... The process is not called when LineItems are opened as consequence of Service Catalog request ... I do not know where to intercept $work variable. There is “svcCat.build.work.file” RAD that could be involved …….. there is where I stand wright now …………
07-12-2013 08:24 AM - edited 07-12-2013 08:27 AM
Actually ... It works. All Line items Option Type in RM Bundle has to be set to "required" or "default". Other wise they are not added to $work variable ... and can not be compared against svc.selection.