Skip to main content

Notifications

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

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

Leaderboard >

Featured topics

Product updates

Dynamics 365 release plans