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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Is there any way to clear form cache on load from js?

(0) ShareShare
ReportReport
Posted on by 10

I use formContext.getControl(fieldName).addCustomView(viewId, entityName, viewDisplayName, fetchXml, layoutXml, isDefault) to add custom view, but it's being added to list every page refresh through "Refresh" button. There is no problem when user refresh page through browser refresh.

I guess, there is used views cache while using form refresh button, that's why my custom views duplicate.

I don't know how to get list of this views for checking my custom view availability in there. I tried to make an Retrieve Call using ODATA to get the savedqueries, but there were only views that I can see in Customization settings section, and there are no views added from script.

Also, using some boolean to check whether function has been called already doesn't help because every form refresh, even through form refresh button, script is being reloaded. 

Maybe there is some way to force cache clean up? 

I have the same question (0)

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 146 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 59

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans