web
You’re offline. This is a read only version of the page.
close
Skip to main content
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,216 User Group Leader on at
    RE: Javascript "Loading screen" while workflow is beeing executed. Close when done?

    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
    RE: Javascript "Loading screen" while workflow is beeing executed. Close when done?

    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
    RE: Javascript "Loading screen" while workflow is beeing executed. Close when done?

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 258

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 186

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 130 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans