Announcements
No record found.
Is it possible to refresh a page using workflow when refreshed case should automaticaly resolved
*This post is locked for comments
The form will be refreshed if the workflow is synchronous and triggered by the user.
The other choice would be to use javascript.
javascript is not affecting the page i tried
User refresh method in javascript to refresh page
www.crmanswers.net/.../the-xrmpagedatarefresh-method.html
Regards,
Rutul
Synchronous workflow can be trigger without refresh. For resolve case you are going for Custom code?
i have written workflow to resolve a case and now i added javascript to reload .. when reloaded status should be resolved .. both are different scenarios.. how to acheive this.
Hi Sandeep,
As per my understanding, you need to resolve the case when Form is getting reloaded. If it is correct, then on which scenario form should get reload? I mean if you save the form, it should resolve?
Please describe little more.
it should be in Case ..
I got it. But in which scenario form should get reload?
It should be on Create of Case or On Update?
when status is closed then i save once its saved.. page should reload and status should be resolved.on both create and update on case
Okay. But my doubt is why you will reload the page? Is this your requirement?
Here you mentioned
>>when status is closed then i save
That means you can write a Workflow and you can choose a trigger option as Status Change.
If Refresh the page is your requirement then you can write AsyncWorkflow and in choose Trigger option as OnCreate and OnUpdate. (Because there is no option for workflow to trigger OnLoad).
And in Javascript you can Write following code
function Form_OnSave(){
Xrm.Page.data.refresh();
}
And call this function OnSave.
Now after saving your form, Js will trigger and Form will be refresh. Mean while AsyncWorkflow will trigger
Note: I can't say Async Workflow will trigger imminently after reloaded the page. It might be trigger little late also.
Choose which one you want to implement.
Hope it helps you
Thanks.
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
AS-17030037-0 2