web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

javascript and workflows

(0) ShareShare
ReportReport
Posted on by

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

  • Verified answer
    Arun Vinoth Profile Picture
    11,615 Moderator on at

    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.

    community.dynamics.com/.../263663

  • Community Member Profile Picture
    on at

    Thank you for the info.

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans