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

Patch/Collect

Hi 

I have som problem with Patch/Collect when I creat a record in a SharePoint list. 

I wounder if it is a way of knowing what ID the record got in the SharePoint list after  it has been created by Patch or Collect?

 

Best regards

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Meneghino
Level 10

Re: Patch/Collect

Hi @Ollek

Yes, it's quite straight forward.

Make your Patch action something like this:

ClearCollect(MyPatchedRecords, Patch(MyDataSource, xxx, yyy))

Then, after the action, you can get the ID with this:

Last(MyPatchedRecords).ID

View solution in original post

2 REPLIES 2
Meneghino
Level 10

Re: Patch/Collect

Hi @Ollek

Yes, it's quite straight forward.

Make your Patch action something like this:

ClearCollect(MyPatchedRecords, Patch(MyDataSource, xxx, yyy))

Then, after the action, you can get the ID with this:

Last(MyPatchedRecords).ID

View solution in original post

Ollek
Level: Powered On

Re: Patch/Collect

Hi @Meneghino

 

Thank you for you quick ansver, it works well.

 

Best regards

Olle  

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
Users Online
Currently online: 305 members 5,783 guests
Please welcome our newest community members: