Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Portal - Entity List - Refresh

Posted on by 20

Hi in d365 portal configured an entity list similar to code in below link. [  fetch xml is not used - records are displayed using {% for e in entityview.records -%}  ]

https://docs.microsoft.com/en-us/powerapps/maker/portals/liquid/render-entity-list-current-page.

from portal page --> on click of a button --> details are sent to Azure function to create record in entity and page is refreshed to reload the entity list. 

data created above doesn't show in entity list even after page refresh

can see the record immediately in entity list only when portal cache is cleared (/_services/about)

is there an alternative way to clear cache or refresh grid without clearing cache

tried below approach to clear cache, page is refreshed but newly added records are not displayed.

var Cacheurl=document.location.protocol+'//'+document.location.host+(document.location.host.indexOf("demo.adxstudio.com")!=-1?document.location.pathname.split("/").slice(0, 3).join("/"):"")+'/Cache.axd?Message=InvalidateAll&d='+(new Date()).valueOf();
var cahcereq=new XMLHttpRequest();
cahcereq.open('GET',Cacheurl,false);
cahcereq.send(null);
window.location.reload(true);
  • Suggested answer
    Justinjose Profile Picture
    Justinjose 2,707 on at
    RE: Portal - Entity List - Refresh

    Hi Kathiktej,

    Could you try following

    1. Restart the portal (admin centre) if not done.

    If the restart doesn't work then try step 2

    2.Turn off and turn on portal state (admin centre)

    Thanks

    Justin Jose

  • karthiktej Profile Picture
    karthiktej 20 on at
    RE: Portal - Entity List - Refresh

    Justin,

    Thanks for response..

    i have change tracking enabled on entity.

  • Suggested answer
    Justinjose Profile Picture
    Justinjose 2,707 on at
    RE: Portal - Entity List - Refresh

    Hi karthiktej,

    Have you enabled change tracking for entity? If not, then could you enabling change tracking.and try.

    https://docs.microsoft.com/en-us/power-platform/admin/enable-change-tracking-control-data-synchronization

    Thanks

    Justin Jose

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

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