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

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested answer

Caching issue in Dynamics 365 Portals

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Suggested answer
    Pranjali Profile Picture
    on at
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 72

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 26 Super User 2025 Season 2

#3
mk1329 Profile Picture

mk1329 16

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans