Skip to main content

Notifications

Service | Customer Service, Contact Center, Fie...
Suggested answer

Caching issue in Dynamics 365 Portals

Posted on by

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

  • Suggested answer
    RE: Caching issue in Dynamics 365 Portals

    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans