Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

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

Posted on by Microsoft Employee

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 

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: 400 no-referrer-when-downgrade Bad Request when deleting a record by ID

    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

  • HenryXie Profile Picture
    HenryXie on at
    RE: 400 no-referrer-when-downgrade Bad Request when deleting a record by ID

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

  • Pankaj Gogoi Profile Picture
    Pankaj Gogoi 3,177 on at
    RE: 400 no-referrer-when-downgrade Bad Request when deleting a record by ID

    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

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans