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 :
Microsoft Dynamics CRM (Archived)

Showing Processing/Loading Icon when Action is being called

(0) ShareShare
ReportReport
Posted on by 1,875

Hi

I have a custom ribbon button on opportunity entity form. When user clicks on that an action is being called using Dynamics CRM Web API.

Action creates another record and then that record is being opened in new window.

When user clicks on the button , the command bar is greyed out until the action is executed and response is received.

I want to show an image or gif like Processing... till the time Action is being executed.

How can I do that?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    ashlega Profile Picture
    34,477 on at
    RE: Showing Processing/Loading Icon when Action is being called

    Hi,

       you might try alertjs:

    github.com/.../Documentation

  • Suggested answer
    Sanjaya Prakash Pradhan Profile Picture
    2,745 User Group Leader on at
    RE: Showing Processing/Loading Icon when Action is being called

    The loader can be implemented on HTML Web resource or custom webpages using JQuery/AJAX not using CRM OOB methods.

    If this solution worked Mark as answer to close the thread.

    Dynamics CRM Training | Visit My Blog | Subscribe YouTube Channel | Like on Facebook

  • Deeps Profile Picture
    1,875 on at
    RE: Showing Processing/Loading Icon when Action is being called

    So, is that not possible?

  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Showing Processing/Loading Icon when Action is being called

    Hi,

    Its not straight forward or OOB implementation. As suggested above, this can be done with custom implementation using JavaScript, Web Resource Web pages etc...

    You can also use already built alert.js solution which has a method to show loading -

    github.com/.../Documentation

    I had similar requirements and in my case, I used the OOB notification  "Processing started..." before starting the WEB API Call and then after the call a notification "Processing completed...". This approach is also used in PSA implementations

    Hope this helps.

  • Deeps Profile Picture
    1,875 on at
    RE: Showing Processing/Loading Icon when Action is being called

    Did you call this from Command Bar? I tried and nothing showed up. I will try again this alertjs

  • RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Showing Processing/Loading Icon when Action is being called

    I had a button in command bad which -

    1. Display the notification that "Process started...."

    2. Call the Custom Action

    3. Display the notification that "Process completed..."

  • Ramakanta Profile Picture
    2,715 on at
    RE: Showing Processing/Loading Icon when Action is being called

    @Ravi Is there any way can we change the text in Alertjs  ,from " Loading" something like "Processing" ,i am using Alert.js v2.1 with Dynamics 365 v8.2

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Showing Processing/Loading Icon when Action is being called

    Hi RK,

    You should be able to change the text in the base alert.js file. Here is the method for loading which can be changed-

    Alert.showLoading = function (url) {

       Alert.show("Loading...", null, [], "LOADING", 230, 115, url, true);

    }

    Hope this helps

  • Ramakanta Profile Picture
    2,715 on at
    RE: Showing Processing/Loading Icon when Action is being called

    Thnaks Ravi...

  • Ramakanta Profile Picture
    2,715 on at
    RE: Showing Processing/Loading Icon when Action is being called

    @Ravi ,I am able to call/see the loading message on button click,but when i add  Alert.hide() function to hide my loading message after my operation completion,it's not working.

    Below is my code,i am using Version 1612 (8.2.2.112) (DB 8.2.2.112) on-premise,In order ensure my opertion taking some time i am pausing my thread for 30 .If i am adding only

     Alert.showLoading() then its showing me the message,but facing issue  when i add the Alert.hide() function.Any help will be appreciated

    function alertTest()

    {

       Alert.showLoading();

           var actionName = "Microsoft.Dynamics.CRM.getfrightrate";

           var quoteId = firstPrimaryItemId.replace('{', '').replace('}', '');

           var actionResponse = CallCustomAction(quoteId, actionName);//Opertion will take > 30sec

           Alert.hide();

    }

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
UllrSki Profile Picture

UllrSki 2

#3
SC-08081331-0 Profile Picture

SC-08081331-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans