Hi,
I have created a javascript which is fired when a field on the screen is changed.
Xrm.Page.getControl("header_process_crmp_newcustomer").getAttribute().addOnChange(newCustomerOnChange);
In that function I do several lookups and checks and I get a value I need later on in the process flow.
Now I can't find how I can get the variable from my javascript into my process flow so I can use it there. The result of my function is not an item on the current page, so I can not set it just there.
I hope you can help me out.
Kind regards,
Erik
*This post is locked for comments
Hi Erik,
If the suggestion helped you then please mark it as verified and close the thread. This will help others facing the same issue.
Thank you for the info.
UI Workflow can be executed from JavaScript, but no parameter can be passed to UI WF. Parameter concept is applicable for custom WF activity which can be passed from UI WF to custom WF activity when execute the step.
What you need is custom action, which can be executed from JavaScript & also parameter (variable value) can be passed to that action.
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
54
Victor Onyebuchi
6