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)
Under review by Community Managers

Under review

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

Call workflow via JS and post a custom message

Posted on by
Dear Team,

I am facing an issue with displaying a custom message when a workflow is completed. My requirement is to show a message after a user clicks a button on the Account form. The button triggers a JavaScript function that calls a workflow to create an Order. While the workflow runs and creates the order without any issues, I am having trouble displaying the custom message 'Order Created Successfully' once the workflow has finished. But the progress indicator 'Creating Order' correctly displays until the workflow runs.

Below is my JavaScript code. Could you please review it and let me know where I might be going wrong and what changes are needed to show the custom message based on the workflow status or when the progress indicator disappears?

Thank you for your assistance. Attached the JS script

 
Thanks
Gowtham

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