cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Swapnil1
New Member

I have added a gallery control and i want to update multiple records when app is offline

Hi all,

I have the below requirement

Swapnil1_0-1663592651748.png

I am updating both the table and Trip ID is a Common link between both the table, One trip Id can have multiple items to deliver so to update table 2 I have added gallery control and by using Patch('DataSource', ThisItem,{Records}) this formula I am updating the multiple items when an app is online. Now I have to perform the same thing when an app is offline. please Help, How to get the Item Id dynamically?

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @Swapnil1 ,

If you are wanting the record ID on a new SharePoint record without being online, you cannot do this offline. SharePoint will automatically create these incrementally based on existing records when the item is created. If you are wanting to know it before creating "child" records to link to it, you need create a Variable on the result of the online Parent Patch (one record at a time) and then use this in the creation of the relevant child records.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

View solution in original post

1 REPLY 1
WarrenBelz
Super User
Super User

Hi @Swapnil1 ,

If you are wanting the record ID on a new SharePoint record without being online, you cannot do this offline. SharePoint will automatically create these incrementally based on existing records when the item is created. If you are wanting to know it before creating "child" records to link to it, you need create a Variable on the result of the online Parent Patch (one record at a time) and then use this in the creation of the relevant child records.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,441)