web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Modifying Case Managem...
Power Apps
Unanswered

Modifying Case Management Template to pull in/filter certain cases from Salesforce

(0) ShareShare
ReportReport
Posted on by

I have created an app from the case manager template in Powerapps that pulls Cases from Salesforce to display. I very simply changed the Data -> Content choice from The CDS database to salesforce cases and updated the fields to reflect the relevant case data. It successfully pulls in cases, but is currently grabbing the 500 oldest cases (not relevant), while I want the newest ones.

 

How can I get the newest cases to load into my app? I would like cases from the last 7 days to start.  

 

I have read a bit about using collections to get more than 500 records, which sounded promising, but haven't been successful implementing it with the limited documentation on the matter. 

 

Thanks in Advance!

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    PowerApps has a limitation to use 500 records at a time to increase performance. 

    When you are pulling cases from Salesforce consider Delegation to limit the number of cases pulled

     

    You can read about delegation and what functions can be delegated here:

    https://powerapps.microsoft.com/en-us/tutorials/delegation-list/

    https://powerapps.microsoft.com/en-us/tutorials/delegation-overview/

     

    If in your case you want to see the most recent 500 records you can use SortByColumn which is delegatable to SalesForce database and sort by date to get most recent records only.

     

    I imagine gallery function would be something like this:

    SortByColumns('SalesForceDataSource',"DateColumn",Descending)

    Also you can delegate Filter function with which you can specify which records to pull.

  • Community Power Platform Member Profile Picture
    on at

    Works like a charm! thank you!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard