cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ivan_Iakovlev
New Member

The trigger call "when an HTTP request is received" works twice.

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;
    });
};

 

1 REPLY 1
Shapuiz
New Member

Same problem

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (2,128)