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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (2,018)