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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans