In SharePoint, there is a form on which there is a button to call the flow. In a random order, this trigger is triggered twice.
It is impossible to track this problem from Power Automate, since the calls occur simultaneously, I get the same Body.
This button JS code bellow:
doRequest(this.decisionFlowHTTPRequestUrl, body)
export const doRequest = async (url: string, body: string, customOptions?: any) => {
const options = {
method: 'POST',
...customOptions,
headers: {
Accept: 'application/json',
'Content-Type': 'application/json;charset=utf-8',
'Cache-control': 'no-cache',
Pragma: 'no-cache',
Expires: '0',
dataType: 'json',
...customOptions?.headers,
},
body: body,
};
console.log({ url: url, body: JSON.parse(body), options: options });
return fetch(url, options)
.then((r) => r.json())
.then((r) => {
console.log(r);
return r.message ? r : r.error;
})
.catch((err) => {
console.log(err);
return err;
});
};
Same problem
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
67 | |
24 | |
16 | |
16 | |
13 |
User | Count |
---|---|
116 | |
35 | |
32 | |
28 | |
26 |