Order Guide's Catalog Client Script not running onSubmit

Raphael4
Kilo Contributor

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:

find_real_file.png

Script include called by the catalog client script:

find_real_file.png

 

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.

6 REPLIES 6

Jan Lois
Kilo Contributor
dvp is right.
instead of client script,just create a business rule for that specific catalog item.
use current.variables.<variable_name> to get the variables from the form

Raphael4
Kilo Contributor

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.