Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

javascript and workflows

Posted on by Microsoft Employee

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
    RaviKashyap 55,410 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
    Community Member Microsoft Employee on at
    RE: javascript and workflows

    Thank you for the info.

  • Verified answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,613 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans