Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Unanswered

Patch Function for CDS: Is response time usual?

(0) ShareShare
ReportReport
Posted on by 513

After spring update, I have started with lot of confidence building my database management PowerApp to manage my business, with data based on CDS (CDS 2.0!).

 

Below is a sample of gallery showing data from Country custom Entity, and for any record, in any entity, i would like to be able to flag/unflag so to follow up flagged records, same as in Outlook for instance.

 

I saves 2 images in the Media in my PowerApp: name of files is flag_red, and flag_gray). While in the entity itself i have a Yes/No field titled IsFlagged. 

 

With Patch, I now can toggle the status of flag of any record without getting into Edit mode, via this formula: 

 

for the little flag in the gallery template: 

 

OnSelect: Patch(Country,ThisItem,If(isflagged=true,{isflagged:false},{isflagged:true}))

 

Image: If(isflagged=true,flag_red,flag_gray)

 

All works fine, perfectly, but response time is long, I would say 5 seconds or so. Saving a record on the other hand via an Edit form is nearly immediate.

 

Am I missing something?

 

PS: UI/UX is copyright protected 😛

 

PS: Once completed, i will share the story of developing this PowerApp.

Categories:
  • Yahya Manasrah Profile Picture
    513 on at
    Re: Patch Function for CDS: Is response time usual?

    Hi. Here is the info required:

    Session ID: ead1df69-931a-41cf-9272-cedc9fe6af2d
    PowerApps 3.18073.24

     

    Not that it really takes +10 seconds to respond..

     

     

  • bsimons Profile Picture
    on at
    Re: Patch Function for CDS: Is response time usual?

    Hello @Yahya, can you repro this and give us another session id?  We can then do further investigation.

     

    Thanks,

     

    Brandon

  • Yahya Manasrah Profile Picture
    513 on at
    Re: Patch Function for CDS: Is response time usual?

    Hi @bsimons @CWesener no update it has been awhile.

  • Yahya Manasrah Profile Picture
    513 on at
    Re: Patch Function for CDS: Is response time usual?

    May be this will help, i made a screenrecording.. At the start, you could see the flagged counter below the gallery counts 2, i flag 2 records, the first record changes FlaggedCount to 3, then it takes few seconds until 2 records image changes to flagged, and the counter read 4

  • Yahya Manasrah Profile Picture
    513 on at
    Re: Patch Function for CDS: Is response time usual?

    thanks @CWesener and @bsimons for being there.

     

    I would like to correct that the estimated 5 seconds delay was too optimiastic, in fact in is 5 to 15 seconds..!

     

    To be clear, i have opened the app in edit mode, then hit the play button, then flagged a record, then returned to edit mode, then this is the info you need: -

     

    Session ID: 1178b5db-f45b-41e4-8551-b02d9fe90efb
    PowerApps 3.18052.12

     

    Looking forward to hearing from you.

     

    Thanks 

     

     

  • bsimons Profile Picture
    on at
    Re: Patch Function for CDS: Is response time usual?

    Can you repro the issue and then provide the session id from the powerapps client?  You can get your session id from the studio by: Click File, Click Account, Under Diagnostics, Click Session Details, and within that text box you will see the session id.

     

     

     
  • CWesener Profile Picture
    on at
    Re: Patch Function for CDS: Is response time usual?

    Adding @bsimons from the Connector team - we may need some additional information to investigate the performance.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
stampcoin Profile Picture

stampcoin 17

#2
mmbr1606 Profile Picture

mmbr1606 15 Super User 2025 Season 1

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics