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 :
Microsoft Dynamics CRM (Archived)

Is it possible to auto refresh a webpage via workflow

(0) ShareShare
ReportReport
Posted on by 127

Is it possible to auto refresh the webpage via workflow? To give a specific example, we have a roll up field and we are using a plug in to auto refresh the roll up field....but....it wont show on the screen til the webpage is refreshed.

What we would like to do, is when a user adds a record via a subgrid, it will then update the rollup field, and then refresh the page so the user sees what has happend.

Regards

Lee

*This post is locked for comments

I have the same question (0)
  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    Unfortunately this is not possible using workflow or plugin as they execute server side . You need to write client side logic where you can retrieve the data using Web API and based on that refresh the page or reopen the entity form using xrm method openEntityForm.

  • Verified answer
    Drew Poggemann Profile Picture
    4 on at

    Hi Mavver,

    We actually tried to do this the last project I was on and we were not able to accomplish.  We had a situation where the users were adding lines to quotes (custom entity) and when they added a line we stated that they had to refresh the screen to see the updated rollup field values.  Not the best experience, I agree, but what we had to do this.

  • Kevin Grech Profile Picture
    380 on at

    As Goutam Das said, You could set up a JS that calls an action (via a web request) that in turn calls the said workflow (or implement the workflow logic in the action itself)  and handle the refresh of the form in the JS callback

    Note that in this case you'll need CRM to refresh the data server-side (there's a request message for this in both plugins/custom actions and web api) then refresh the data from the browser (UI-wise) using Xrm (in 8.2 it's Xrm.Page.data.refresh() ). But as I said, the flow has to start from the browser, meaning you'll have to either add a new button or do some unsupported changes.

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans