cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
alex3
Level: Powered On

PowerApps Connection with Flow

I have a sharepoint list linked to the powerapp and i would like that when the user goes through all the screens and submit the final version of the document (meaning a particular form), a PDF document is emailed to the user. The only think I have not been able to accomplish is the trigger from powerapps to flow. The flow is created but it is giving an error 404: GetItemId not found. I saw several posts but they are selecting data from dropdowns, and I want is that when a form on a certain screen is submitted then it triggers the flow. The form is submitted with a particlar button and is that button the one that I am trying to configure. Any help on this?

1 ACCEPTED SOLUTION

Accepted Solutions
KC
Level 8

Re: PowerApps Connection with Flow

@alex3 ,

Ex. 

1. Textbox: Name Property = txtAlerts

2. Button

3. Label

Alerts = SharePoint list

 

Using a Collection

Save to a collection the return values of the Patch function with the Defaults function.

 

Button OnSelect Property is set to ClearCollect(recordInfo,Patch(Alerts,Defaults( Alerts ),{Title: txtAlerts.Text}))


Label Text Property = First(Alerts).ID - this is the ID that SharePoint assigns and in this case returns when the record is submitted. 

 

Or if using a Variable

Set(recordInfo,Patch(Alerts,Defaults( Alerts ),{Title: txtAlerts.Text}))

Label Text property = recordInfo.ID

 

Hope this helps.

View solution in original post

5 REPLIES 5
KC
Level 8

Re: PowerApps Connection with Flow

If I'm understanding this correctly.

 

PowerApps doesn't generate ItemId's.

The way I would do this would be to trigger the Flow on the SharePoint side when an new item is submitted to the list. The current ItemId would come from the SharePoint record that was submitted.

 

The only other way to get the ItemId would be when you are modifying an existing record.

Which in the other examples you mentioned with the dropdowns seem to be doing.

 

Hope this helps

TopShelf-MSFT
Level 10

Re: PowerApps Connection with Flow

Hi @alex3 thanks for posting in the PowerApps community. Are you still getting this error message and can you review the above reply and advise if it was helpful? 

 

Thank you,

 

@TopShelf-MSFT 

Highlighted
alex3
Level: Powered On

Re: PowerApps Connection with Flow

Where do I retreive the current ItemId. I believe that my main issue.

KC
Level 8

Re: PowerApps Connection with Flow

@alex3 ,

Ex. 

1. Textbox: Name Property = txtAlerts

2. Button

3. Label

Alerts = SharePoint list

 

Using a Collection

Save to a collection the return values of the Patch function with the Defaults function.

 

Button OnSelect Property is set to ClearCollect(recordInfo,Patch(Alerts,Defaults( Alerts ),{Title: txtAlerts.Text}))


Label Text Property = First(Alerts).ID - this is the ID that SharePoint assigns and in this case returns when the record is submitted. 

 

Or if using a Variable

Set(recordInfo,Patch(Alerts,Defaults( Alerts ),{Title: txtAlerts.Text}))

Label Text property = recordInfo.ID

 

Hope this helps.

View solution in original post

hh01
Level: Powered On

Re: PowerApps Connection with Flow

is it possible to use the flow to powerApps? I am creating leave request from powerapps and require for 3 approval. How can I create that?

thank you

Helpful resources

Announcements
thirdimage

Power Automate 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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (3,692)