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...
Suggested Answer

400 no-referrer-when-downgrade Bad Request when deleting a record by ID

(0) ShareShare
ReportReport
Posted on by

Hi Experts,

I came across the following issue:

The requirement is: in Entity A, by clicking a customized button, a child record will be deleted. The relationship is in the screenshot:

pastedimage1596288800439v1.png

So I first use web api to get the child record id, and I don't have issue in getting the correct record . However I got the bad request as follows:

pastedimage1596289302385v2.png

Any reply is welcome. Thank you 

I have the same question (0)
  • Pankaj Gogoi Profile Picture
    3,177 on at

    Hi jmadele,

    Please check if you are able to delete using Postman.

    docs.microsoft.com/.../use-postman-perform-operations

    Also, please try using this approach to delete and see if it works.

    docs.microsoft.com/.../deleterecord

    Best Regards

    PG

  • HenryXie Profile Picture
    Microsoft Employee on at

    Hi Jmadele, did you find any related log on AOS event log? or capture with Fiddler ?

  • Suggested answer
    Bipin D365 Profile Picture
    28,985 Moderator on at

    Hi,

    Could you please share source code to investigate this issue further?

    See if this is what you are using -- 123 is record ID replace with your record ID

    Xrm.WebApi.online.deleteRecord("account", "123").then(

       function success(result) {

           //Success - No Return Data - Do Something

       },

       function(error) {

           Xrm.Utility.alertDialog(error.message);

       }

    );

    Please Mark My Answer Verified If I Were Helpful

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
11manish Profile Picture

11manish 91

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 78 Super User 2026 Season 1

#3
Martin Dráb Profile Picture

Martin Dráb 55 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans