The purpose of this community post is to show you how you can easily make HTTP requests to Dynamics CRM through the browser without using third-party tools.
A PATCH, DELETE and POST request will be exemplified.
PATCH request:
To illustrate the PATCH request, the documentation below will be used, the description of a cloud flow will be updated.
Manage flows with the Power Automate Web API - Power Automate | Microsoft Learn
The first thing that needs to be done is to find the workflowid, which identifies the workflow that will have its description updated.
We can fetch the workflowidunique: b047b268-0fe1-4fd0-a732-64bdf3ab0e07 from the make.powerapps.com url and write the Web API query below to obtain the workflowid.r
org_url/api/data/v9.2/workflows?$filter=workflowidunique%20eq%2028c0d66e-8d73-4f75-9f98-27410375d8da
Now that we have the workflowid, to make the PATCH request to change the description of the Power Automate flow we just to need to have Dynamics CRM on the current tab, open a DevTools console using F12 and execute the following request inside it:
fetch(window.origin + "/api/data/v9.2/workflows(2019fb81-098a-ed11-81ad-0022489fdddf)",{
method: "PATCH",
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({'description': "new description"})
});
- Notice that on the request url we have included the workflowid.
- The method is "PATCH".
- The description has been updated to "new description".
Before:
Pasting the request on Dev Tools:
After the request has been executed we can see that the description has changed successfully:
DELETE Request:
Cloud flow deletion can be also accomplished using a similar request.
The changes needed include:
- Changing the request from PATCH to DELETE.
- Remove body from the request.
This is what the new request will look like:
fetch(window.origin + "/api/data/v9.2/workflows(2019fb81-098a-ed11-81ad-0022489fdddf)",{
method: "DELETE",
headers: {'Content-Type': 'application/json'},
});
Before:
Pasting the request on DevTools:
As we can see on the screenshot below, the flow has been successfully deleted.
POST request:
Lastly, a POST request can also be done in similar fashion, following the documentation below, here is how you can create an account:
Create a table row using the Web API (Microsoft Dataverse) - Power Apps | Microsoft Learn
fetch(window.origin + "/api/data/v9.2/accounts",{
method: "POST",
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
'name': "Sample Account",
'description': "This is a sample account"
})
});
Before:
After: As it can be seen the account was created.
Hope this community post was a pleasant reading.
Now you are familiar with a simple way on how to do HTTP requests without using third-party tools.
Thanks for reading!

Like
Report
*This post is locked for comments