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)

Automatically refresh form when click On Demand Workflow

(0) ShareShare
ReportReport
Posted on by 462

Hi, 

I have on demands workflow. when I run the workflow, and succeeded, the form will not refresh and update automatically, so need to refresh by manually.

is there anyways to do this automatically without refresh manually?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    This can be done but would require some custom code/ development. Basically, you can add a custom ribbon button to trigger the workflow and once the workflow is executed successfully, you can refresh the page using JS.

    Check this link-

    www.powerxrm.com/find-and-execute-workflow-from-js-in-ms-dynamics-crm-20152016

    ribbonworkbench.uservoice.com/.../132235-create-a-workflow-short-cut-ribbon-button-no-code

  • xcode17 Profile Picture
    462 on at

    Hi Ravi,

    I already use the custom ribbon to run the on demand workflow.

    may I know, when this JS will run? is it on form load or something?

    please help.

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    You need to call the js from the custom ribbon button you have added.

    Check this link

    http://himbap.com/blog/?p=1473

  • Abdelrhman_raafat Profile Picture
    15 on at

    You can try this js code after call workflow by ribbon button 

    Xrm.Page.data.refresh(); 

    Best Wishes

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