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

Notifications

Announcements

No record found.

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
    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,983 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
iampranjal Profile Picture

iampranjal 41

#2
Martin Dráb Profile Picture

Martin Dráb 36 Most Valuable Professional

#3
Satyam Prakash Profile Picture

Satyam Prakash 35

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans