Hi all,
I have (another) question about portal caching.
My client has a requirement of allowing authenticated users to download a JSON file with data from the CDS and trigger the browser's download window prompt (to the local Download folder)
So far I was able to generate the file using a Power Automate flow and store the JSON file as an (temporary) attachment in the Notes entity.
The issue I am facing is that the the Dynamics Portal does not retrieve the newly created/latest attachment file. Instead,the file either shows up empty or shows data the previous version. I can only get this to work if I refresh the portal cache on the (...About page) which is not a viable solution. I have enabled the Change tracking option on all the needed (custom) entities.
Are there alternatives to have the cache refreshed immediately (sooner then the SLA of 15 mins)? Or do you have suggestion how to create a JSON file on the fly with CDS data and immediately return it the to Portal page that the user is on (for downloading)?
Any help / suggestion would be appreciated.
Best regards,
Geron Profet
Hey Geron,
Have you tried to trigger the download by flow action that way the latest file is directly downloaded from CDS : https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/entity-forms#entity-form-action-configuration
I haven't tried it for Flow but this works well when using workflow in CRM.
Cheers!
Pranjali
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156