cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Resolver I
Resolver I

Trigger a Flow from button

Hi 

I have a fairly complicated PowerApp that submits data to various SP lists as the user moves through the app. At the end of the app, the user selects up to people from  SP person columns that need to approve the request. I want to have a button that triggers a flow to send approval requests (with the details of the request) to each of the people selected. I cannot figure out what i am supposed to put in the Onselect for the PowerAppsbutton.Run(                     

I can't use the flow trigger of SP list changed/modified as there are modifications happening to the list as it is constantly updated & there doesn't seem to be anyway of specifying that the flow should only trigger when particular fields are modified 😞

Can anyone help?

 

The PowerApp:

Cym_0-1593046031813.png

 

Here is the flow that i've started:

Cym_1-1593046091400.png

 

Here is the SP List:

Cym_2-1593046159184.png

 

 

6 REPLIES 6
Super User
Super User

try making a collection of the email addresses from the selected people and send the collection to flow using steps like this:

https://www.bing.com/videos/search?q=pass+objects+to+flow+from+power+apps&docid=607988732623716569&m...

 

You will then need to parse the json using the flow parse json action.

 

Hi there,

Thanks for directing me to this video, but i'm still having trouble. I am trying to use the formula as direct in the video (see below), but i keep getting wiggly lines with the error " invalid number of arguments arguments: received 1, expected 0 - what am i doing wrong??

 

Cym_0-1593390260630.png

 

Hi @Cym ,

 

Make sure that you are reading values from PowerApp in your flow. Go to flow and select the step where you want to read this connect and say "ask from powerApp".


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
Krishna
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

 


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Proud to be a Super User!

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

Hi Krishna,

 

Thanks for trying to help. I've done as you suggested, but still no luck:

Cym_0-1593393462815.png

 

Hi @Cym ,

 

Remove the flow in PowerApp and add it back that should solve your issue.

 


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
Krishna
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Proud to be a Super User!

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

Thanks for your help, but still doesn't work 😞

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (74,766)