Client Script on Catalog Task table to access Variables

Diorella Angulo
Tera Expert

I was going to create a Client Script on the sc_task table, an onChange script, but I notice that I can't access the name of the variable from the Field name. It just says Variables, and I need the name of the variable which would be SAP Order Number, then right a script that if it changes, the value would be copied to another field.

find_real_file.png

This is the variable, I know that in the Workflow we normally do something like current.variables.sap_order_name, but not sure in this case that I need to write an onChange script.

find_real_file.png

I really appreciate any help.

Thanks,

2 ACCEPTED SOLUTIONS

Aman Kumar S
Kilo Patron

Why don't you use UI policy on the catalog item itself for this and mark true on Applies on catalog task only and then use script action to update field values.

Best Regards
Aman Kumar

View solution in original post

Hi @Diorella Angulo 

Is your issue resolved?


Feel free to mark correct, if your issue has been resolved, so it ends up in solved queue.

Will be helpful for others looking for the similar query.

Best Regards
Aman Kumar

View solution in original post

3 REPLIES 3

Aman Kumar S
Kilo Patron

Why don't you use UI policy on the catalog item itself for this and mark true on Applies on catalog task only and then use script action to update field values.

Best Regards
Aman Kumar

@Diorella Angulo 

Feel free to mark correct, If I answered your query.

Will be helpful for future visitors looking for similar questions 🙂

 

Best Regards
Aman Kumar

Hi @Diorella Angulo 

Is your issue resolved?


Feel free to mark correct, if your issue has been resolved, so it ends up in solved queue.

Will be helpful for others looking for the similar query.

Best Regards
Aman Kumar