web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Help triggering a flow...
Power Apps
Answered

Help triggering a flow from within PowerApps

(0) ShareShare
ReportReport
Posted on by 601

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

Categories:
I have the same question (0)
  • RezaDorrani Profile Picture
    12,145 on at

    @CarlHRVA 

     

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

     

     

  • CarlHRVA Profile Picture
    601 on at

    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.

  • RezaDorrani Profile Picture
    12,145 on at

    @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 Profile Picture
    601 on at

    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.

  • RezaDorrani Profile Picture
    12,145 on at

    @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 Profile Picture
    601 on at

    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.

  • Verified answer
    RezaDorrani Profile Picture
    12,145 on at

    @CarlHRVA 

     

    What is the Item property of EditForm1

     

     

     

  • CarlHRVA Profile Picture
    601 on at

    BrowseGallery1.Selected

  • Verified answer
    RezaDorrani Profile Picture
    12,145 on at

    @CarlHRVA 

     

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

  • CarlHRVA Profile Picture
    601 on at

    Thank you so much Reza.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard