Skip to main content

Notifications

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

  • RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: javascript and workflows

    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.

  • Community Member Profile Picture
    on at
    RE: javascript and workflows

    Thank you for the info.

  • Verified answer
    Arun Vinoth Profile Picture
    11,615 Moderator on at
    RE: javascript and workflows

    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

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans