cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Flow creates two records when button is pressed

Hi,
I created a app that sends the current coordinates when a button is pressed and sends it to a SharePoint list;
I don't know why but it creates two or three records; is there a way to add like a delay or something to get around this situation?

This what I have on OnSelect:

LocationFlow.Run(txtLatitude,txtLongitude);
Navigate(Success,ScreenTransition.Fade)

 

And this is an example of two records created on SharePoint List

 

2020-09-01 11_56_25-Window.png

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Flow creates two records when button is pressed

Hi @DEIHADmin ,

Do you mean that it would create multiple entries in your SP List when you press the button?

Do you add a SubmitForm formula in your canvas app to submit your form data back to your SP List?

 

Regarding the needs that you mentioned, if you just want to patch data back to your SP List, I think it is not necessary to fire a flow from your canvas app, then create a new entry in your SP List using Power Automate flow. Instead, I think the Patch function is enough for your scenario:

 

Patch(
      'Your SP List',
      Defaults('Your SP List'),
      {
        Title: "xxxxx",
        Coordinates: Concatenate(txtLatitude.Text, txtLongitude.Text),
        ...
        ...
      }
)

 

 

For your issue, please check if you have added extra SubmitForm(...) formula in your canvas app to submit data back to your SP List. Please also check if you have typed SubmitForm(...) or Patch(...) formula within the OnVisible property of the Success screen, to submit data back to your SP List.

 

If the issue still exists, please consider re-generate a new app based on your SP List data source, then try above solution, check if the issue is fixed.

 

Regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Flow creates two records when button is pressed

Hi @DEIHADmin ,

Do you mean that it would create multiple entries in your SP List when you press the button?

Do you add a SubmitForm formula in your canvas app to submit your form data back to your SP List?

 

Regarding the needs that you mentioned, if you just want to patch data back to your SP List, I think it is not necessary to fire a flow from your canvas app, then create a new entry in your SP List using Power Automate flow. Instead, I think the Patch function is enough for your scenario:

 

Patch(
      'Your SP List',
      Defaults('Your SP List'),
      {
        Title: "xxxxx",
        Coordinates: Concatenate(txtLatitude.Text, txtLongitude.Text),
        ...
        ...
      }
)

 

 

For your issue, please check if you have added extra SubmitForm(...) formula in your canvas app to submit data back to your SP List. Please also check if you have typed SubmitForm(...) or Patch(...) formula within the OnVisible property of the Success screen, to submit data back to your SP List.

 

If the issue still exists, please consider re-generate a new app based on your SP List data source, then try above solution, check if the issue is fixed.

 

Regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,516)