Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
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,198 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,564 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,651 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans