cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ash2
Helper II
Helper II

How to refresh a set record

Hi all, 

 

im using Set function to grab a record that's within a gallery (that's connected to a SharePoint list), so when a user navigate to a different screen they will referencing the Set record. 

 

i wanted to know if there is a way to refresh that set record, once they have made some changes to that item.

 

thank you in advance for your help, enjoy your day.

1 ACCEPTED SOLUTION

Accepted Solutions
timl
Super User
Super User

Hi @Ash2 

You can update the item in your variable by calling the Set function again.

If you update your record by calling patch, the return value from patch will contain the updated record. Therefore, you can use syntax that looks like this:

Set(varYourVariable, Patch(YourSharePointList, varYourVariable, {...})


Likewise, if you were using a form, the last submitted property of the form will return the updated record.

View solution in original post

3 REPLIES 3
timl
Super User
Super User

Hi @Ash2 

You can update the item in your variable by calling the Set function again.

If you update your record by calling patch, the return value from patch will contain the updated record. Therefore, you can use syntax that looks like this:

Set(varYourVariable, Patch(YourSharePointList, varYourVariable, {...})


Likewise, if you were using a form, the last submitted property of the form will return the updated record.

@timl 

 

thank you for the help, you are awesome!

timl
Super User
Super User

Thanks @Ash2  🙂

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (3,719)