cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CarlHRVA
Level 8

Help triggering a flow from within PowerApps

Sorry if this has been answered before but I've been at this for hours and read everything I can find but I can't figure out why I have this wrong. I'm trying to kick off an approval flow from within PowerApps either using a new button or just making use of the button used to submit a form from the edit screen. I've tried several different formulas and a few of them even "work" until I attempt to run the flow using the button in which case it returns the error message that "The method Run has an invalid value for parameter 'GetItemID'. The most recent formula I've tried is 

'REQUESTAPPROVAL'.Run(DataCardValue10.Selected.Value, "Sent for Approval"). The datacardvalue10 is the Status column and the "Sent for Approval" is the value I want to check against in my second action in the flow. Any help or a point in the right direction would be greatly appreciated.

 

Thanks,

Carl

2 ACCEPTED SOLUTIONS

Accepted Solutions
Dual Super User
Dual Super User

Re: Help triggering a flow from within PowerApps

@CarlHRVA 

 

What is the Item property of EditForm1

 

 

 

View solution in original post

Dual Super User
Dual Super User

Re: Help triggering a flow from within PowerApps

@CarlHRVA 

 

Then use BrowseGallery1.Selected.ID as param to pass to Flow

View solution in original post

10 REPLIES 10
Dual Super User
Dual Super User

Re: Help triggering a flow from within PowerApps

@CarlHRVA 

 

Share screenshot fo flow in edit mode and run mode with error

 

 

CarlHRVA
Level 8

Re: Help triggering a flow from within PowerApps

Capture.PNGCapture.PNG

 

So the error I get is when I try to use the button in PowerApps and the Flow history doesn't show an attempt at all.

Dual Super User
Dual Super User

Re: Help triggering a flow from within PowerApps

@CarlHRVA 

 

What type is the data type for the parameter GetItem_Id

 

The value you are passing is not matching its type and hence the error

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

CarlHRVA
Level 8

Re: Help triggering a flow from within PowerApps

Maybe that's where I am lost? I'm not sure how to get that ID to be honest and I was just passing the value of the "Status" DataCard there and then the Status that I was using for the condition. Ideally I would like to be able to add a new button and field called "Ready for Workflow?" and if they select yes, ill show the button and they are able to kick off the workflow on the same item they are viewing in the edit screen but if that's not possible I would just like to kick it off whenever they add or update and item from the details screen and resolve the condition like I am currently.

Dual Super User
Dual Super User

Re: Help triggering a flow from within PowerApps

@CarlHRVA 

 

Sorry but I have no context of your App or the fields related to it (or its data types)

 

If you are trying to query the item in Flow using get item and then passing the ID

then all you need to pass is the ID of the list/library item from PA

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

CarlHRVA
Level 8

Re: Help triggering a flow from within PowerApps

Okay so with my current formula:

 

'REQUESTAPPROVAL'.Run(DataCardValue10.Selected.Value, "Sent for Approval");SubmitForm(EditForm1)

 

The red text is what I used as the "ID" but that is the selected value of the "Status" field, which is a choice column.  What would I use there instead to pull the ID of the current item in the edit form?

 

I've tried EditForm1.Selected.ID and EditForm1.ID and it returns as invalid.

Dual Super User
Dual Super User

Re: Help triggering a flow from within PowerApps

@CarlHRVA 

 

What is the Item property of EditForm1

 

 

 

View solution in original post

CarlHRVA
Level 8

Re: Help triggering a flow from within PowerApps

BrowseGallery1.Selected

Dual Super User
Dual Super User

Re: Help triggering a flow from within PowerApps

@CarlHRVA 

 

Then use BrowseGallery1.Selected.ID as param to pass to Flow

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

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