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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Dialog box message displaying when using formContext.data.save().then() or formContext.data.save()

(0) ShareShare
ReportReport
Posted on by 1,532

Hi

Working with the UCI. I am trying to use the formContext.data.save() or the formContext.data.save().then().

The problem that I am having is that I am getting the following dialog box. 

I would also like to use my own Xrm.Utility.showProgressIndicator when saving a record.  But the save button is already displaying a ProcessIndicator when using a normal save.

Is there a way to get around the dialog box when using formContext.data.save() or formContext.data.save().then().

ProcessBar.JPG

And can I use my own Xrm.Utility.showProgressIndicator when saving without using the normal save Xrm.Utility.showProgressIndicator.

I trying to not have to use this code when saving.

setTimeout(() => {
 callFunction(formContext);
}, 3000);

I have the same question (0)
  • Suggested answer
    Henry J. Profile Picture
    5,237 on at

    Hello,

    In my tests I haven't encountered a similar dialog box as the one you show here when using the save client API.
    Can I advise that you open a support request? https://admin.powerplatform.microsoft.com/support

    Also, what do you mean using your own Xrm.Utility.showProgressIndicator? 
    showProgressIndicator and closeProgressIndicator are both first-party client APIs.

    If you know the save action is going to take a while, have you tried triggering showProgressIndicator before triggering a save, and use closeProgressIndicator as the successCallback of your save?

    Henry

  • rthompson Profile Picture
    1,532 on at

    Hi Henry,

    Thanks I put in a support ticket.

    I have tried putting the showProgressIndicator before but the dialog box is showing each time.

  • Verified answer
    rthompson Profile Picture
    1,532 on at

    Support helped me resolve this issue by doing the following on a save event.

    Issue: Dialog box message displaying when using formContext.data.save().then() or formContext.data.save()

    ​Resolution: Issue is fixed by below code,

    function OnSaveEvent(executionContext, iOption) {
          var formContext = executionContext.getFormContext(); // get formContext
          formContext.getAttribute("new_instrumentid").setSubmitMode("always");
          var instrumentId = "Car Instrument";
          formContext.getAttribute("new_instrumentid").setValue(instrumentId);
    
          //Need to use the following code.  This will suppress the dialog box
          formContext.data.entity.addOnSave(function () {
    
          });
    }

  • Henry J. Profile Picture
    5,237 on at

    Thanks for sharing!

  • msreddy543 Profile Picture
    10 on at

    Hey Thompson,

    I am trying to do the save on one of my forms.

    I tried formContext.data.entity.addOnSave(function () {

         }); inside the save method, But I am still seeing the issue. Could you please help me with this?

    Help will be appreciated.

  • Ics_rthompsoneu Profile Picture
    74 on at

    Hi,

    What is actually happening.  Are you getting the Dialog box?  Data not writing.

    Can you show your code.

  • msreddy543 Profile Picture
    10 on at

    I am using this on my save

    export function saveform(context)

    {
    try {


    formContext.data.entity.save("saveandclose");

    formContext.data.entity.addOnSave(function () {

    });
    }

  • Clint Woods Profile Picture
    1,031 on at

    That fix didn't work for me. Did I miss something?

    pastedimage1592436065026v3.png

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 55

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans