Skip to main content

Notifications

Power Platform Community / Forums / Building Power Apps / Dataver Offline for mo...
Building Power Apps
Suggested answer

Dataver Offline for mobile device

Posted on by 6

I am working on a PowerApps application where I use the Patch function to update a record in my Dataverse Offline table. After the Patch, I want to get the ID of Bill same as the code below for next screen.

When I test the app in a web browser, everything works perfectly — the data syncs immediately after the Patch, and I can see the updated record. However, when I public and use the app on a mobile device, the data doesn't refresh instantly after the Patch, leading to delays in showing the updated data and the id not showing on the next screen

Is there any way to resolve this issue and ensure that the data syncs properly and immediately after Patch when the app runs on mobile? What steps should I take to fix this?

This is a code in OnSelect property of patch Button

ClearCollect(
    NewBill,
    Patch(
        Bills,
        Defaults(Bills),
        {'Status Invoices': "Draft"}
    )
);
Set(
    _idBill,
    First(NewBill).ID
);
 
  • CU12090904-0 Profile Picture
    CU12090904-0 6 on at
    Dataver Offline for mobile device
    Hi @timl
    I just want to look up the record by _idbill for the Patch function of the Done button, so it can save the gallery data to the correct ID Bill
     
  • CU12090904-0 Profile Picture
    CU12090904-0 6 on at
    Dataver Offline for mobile device
    hi @BP-CUK
    It's not working. On the mobile app, when I click a button, it triggers the Navigate command to a new screen, but the record hasn't updated yet, so the ID doesn't show on the next screen.
  • timl Profile Picture
    timl 31,543 on at
    Dataver Offline for mobile device
    Hi @CU12090904-0
     
    Can you clarify how you're displaying the record on the next screen? Do you have a form with Item property set to First(NewBill) or are you looking up the record by _idBill?
     
     
     
     
  • Suggested answer
    BP-CUK Profile Picture
    BP-CUK 4 on at
    Dataver Offline for mobile device
    Tried the below?
     
    Set(_idBill,
        Patch(
            Bills,
            Defaults(Bills),
            {'Status Invoices': "Draft"}
        ).ID)
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

September 2024 Newsletter…

September 2024 Community Newsletter…

Community Update Sept 16…

Power Platform Community Update…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 141,065

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,407

Leaderboard