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

Notifications

Announcements

No record found.

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

I have the same question (0)
  • 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans