cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Cym
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
jlindstrom
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

 

KrishnaV
Super User III
Super User III

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.

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

 

KrishnaV
Super User III
Super User III

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.

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (23,348)