Anyone figured out how to do 'bulk' orders in Service Portal?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2017 11:07 AM
I'm trying to determine the best way to do 'bulk' orders (similar to this but not the same obviously: Enable bulk requests ) from the Service Portal and hoping someone else has already come up with a good solution. My use case is Security Requests, where a group of people need the exact same access BUT we need separate RITMs on the backend to get approval for individuals.
What I thought would work:
- Add a List style variable to the request form, in order to capture any people who need the same access
- Add a List field to the RITM to then take that value from the submitted form (via workflow script)
- Have an after Business Rule that uses a script similar to the script found here: Re: How to clone RITM with all variables that triggers when this new List field is populated
So far my problems are as follows:
- If that script is left unmodified, you end up creating copy RITMs until the system pukes - because the combination of the BR and script cause the copy to happen continuously. The script needs to not copy the List variable (so there's nothing to populate it from the workflow)
- If the script is left unmodified, you just get RITM copies for the same user. I don't know how to modify the script to go through the values of the List field (array) to then run the copy for each user.
If you've setup something like this that works in an alternative way - I'm all ears. Or if you know what to do with that script to fix this - again - ears.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2017 06:05 AM
Yes user_list til at "List Collector" variable.
We have extended the Product Catalog with an Access Model type, which gets populated automatically from our Identity Management platform.
Then we have business rules to automatically create a catalog item for each Access Model. Each catalog item is assigned the same workflow and variable set, so they all work alike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2017 06:12 AM
Sorry for all the questions, but I have more:
What's this in bold? var AccessUtil = new TOP_AccessUtils();
How does this work?
- //Also transfer the cart values so we get all the options set on the cart when ordering
- req.u_cart_values = current.request.u_cart_values;
There has to be more to this than a simple field copy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2017 10:52 AM
You dont need those lines. The first one is something we are not using anymore. I have just forgotten to remove it.
The second on is because we have extended the fields on the checkout page to request further information. You can disregard this as well