Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

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

Posted on by 880

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?

  • Suggested answer
    Rakesh90 Profile Picture
    Rakesh90 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 

  • rskadk1 Profile Picture
    rskadk1 880 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".

  • meelamri Profile Picture
    meelamri 13,204 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?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans