Order Guide's Catalog Client Script not running onSubmit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2019 03:27 PM
Hi everyone,
I'm working on the order guide to facilitate communication between HR, Help Desk, Facility Management and managers.
In a case of an employee status change (promotion, change department...) HR submit a form that will trigger some task and send an email to the manager. This email contains a link to an order guide with bunch of parameters already pre-filled to avoid mistakes. I have a loop in my workflow to check if the manager has submitted the order guide or not. I'm trying to update the main ticket (submitted by HR) when the manager submit the order guide so I don't resubmit the email to the manager.
My issue is that I can't seem to update the main ticket after users check out on the order guide. I wrote a catalog client script to be called onSubmit on requested items and catalog task.
On the order guide, catalog client script:
Script include called by the catalog client script:
The script is called when I check "Applies on a catalog Item view" but then it's called when the manager is reviewing the item. If the manager doesn't submit the order this option will still update the ticket as the script was triggered on the view.
I also tried different ways to do it but nothing worked.
I'm on Kingston.
Do you guys have any idea?
thanks,
Raphael.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2019 05:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2019 09:33 AM
Hi,
So I thought of creating a business rule on one catalog item but then, if they don't select it, the business rule won't run even if they submitted the order guide.
I looked in the documentation and in the community and I couldn't find a way to make one of the catalog items in the order guide mandatory.