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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Javascript "Loading screen" while workflow is beeing executed. Close when done?

(0) ShareShare
ReportReport
Posted on by 886

Hi,

I have a workflow performing actions, sending data to an external system. This can take up to 2-4 minutes. The problem is that the user doesn't know when it's done, so im looking for something visual to alert the user that the data transfer is ongoing.

I found that Xrm.Utility.showProgressIndicator maybe can be used. The wait progress bar should be showed when clicking on a ribbon button or changing a value on the form (the javascript can be called from either of theese). However then the ProgressIndicator should be closed when the workflow completes (Or even better when a value is set on the form marking that all data has been sent to the external syetem).

Can this be done?

I have the same question (0)
  • meelamri Profile Picture
    13,218 User Group Leader on at

    Hi,

    Can you please give more details about the implementation of the workflow? Also, how do you trigger your workflow currently?

  • rskadk1 Profile Picture
    886 on at

    Hi,

    For the case we can simplify it. Let's say that we have a field named status. When the status is changed to "Data transfer" the javascript loading screen should appear. When the field named status 2-4 minutes after is changed to "Data transfer complete". the javascript loading screen should be closed. Now the user can continue to work. The reason why i mentioned the workflow was because the workflow changes the status field to either "Data transfer" or "Data transfer complete".

  • Suggested answer
    Rakesh90 Profile Picture
    200 on at

    Use Xrm.Utility.closeProgressIndicator() to close the indicator within the success method of your workflow execution function.

    If this answers your question please mark my answer as verified 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 79 Super User 2026 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 62 Most Valuable Professional

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 42 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans