cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

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

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!

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

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

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.

2 REPLIES 2
Anonymous
Not applicable

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

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.

Anonymous
Not applicable

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

Works like a charm! thank you!

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 237 members 3,932 guests
Please welcome our newest community members: