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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Trying to trigger a fl...
Power Apps
Unanswered

Trying to trigger a flow from Power Apps Submit button

(0) ShareShare
ReportReport
Posted on by

I have a Gallery lookup that prepopulates parts of a Gallery Form.  The user is meant to update additional fields, and then when they click submit, it needs to update the SharePoint list that feeds the Gallery and also create an item in an additional SharePoint list.

 

shannonkdb_0-1659647081320.png

I I have created variables in the flow to map to the gallery form:

shannonkdb_1-1659647146730.png

I am not managing to get the OnSelect formula right.  PowerApps won't accept anything I have tried based on videos and guides I have looked at. Below are two examples. 

shannonkdb_3-1659647287942.png

 

shannonkdb_2-1659647272134.png

 

If someone can please help point me to a solution or YouTube Videos or guides that might help me figure this out, I would really appreciate it.  If I can understand the logic behind it, it might help as well.

 

 

 

Categories:
I have the same question (0)
  • NickyTemperley Profile Picture
    19 on at

    Hi @shannonkdb ,

     

    I think we need more information in order to help. I'll try my best making assumptions from what I have.

     

    I'm assuming when you select an item from the list (marked as 1), you are wanting to append the detail that is entered in parts 2 and 3 to that record? If thats the case, the first parameter in your flow call should be "AIP Line Item.selected.ID" replacing AIP Line item with whatever that control is called. From there, assuming you want to pull the newly entered data into your data source, you'll need to specify in your flow to ask in powerapps (if you using the Powerapps v1 connector) for each item, or you need to specify them as inputs in your first flow step (if using powerapps v2.


    After that, delete your flow from your app and re-add it, just to get rid of any cached parameters. Now your flow should look something like "'Powerapp ->GetItem,UpdateitemFinanaceWorkflow'.Run({AIP Line Item}.Id,{ServiceDept}.Text,{RequestedCapex}.Text.......)", replacing the field names inside the curly braces with their corresponding controls on your screen. So the first item is the ID of the line you wish to update, and every item after that is the piece of data you wish to add to it. There will be one input for each of the pieces of data.

     

    Once you've done that, you should have all the data within flow to use for the rest of the workflow.

     

    The alternative to all of that is to set the item of your form to {AIP Line Item}, use your button to submit the form, then you only need to pad the AIP Line item ID into your flow, you will able to get the variables from Sharepoint's Get Item connector.

     

    Hope that helps some way to solving your issue, but let me know if not

     

     

  • zuurg Profile Picture
    535 Super User 2024 Season 1 on at

    Out of curiosity, why is Power Automate involved in this at all instead of just updating the record in the SP List directly and adding the new record to the other list?

  • NickyTemperley Profile Picture
    19 on at

    I agree, a form submission and a patch would be the easiest option. I assume Flow is involved because either:

    -it's easier for a new developer to visualise the steps taken

    -there's an added complexity we aren't aware of

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard