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

Announcements

No record found.

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
AS-17030037-0 Profile Picture

AS-17030037-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans