Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Refresh the form after the workflow runs

Posted on by Microsoft Employee

Hi,everyone

I use the custom button command javascript to trigger the workflow. I want the workflow to be refreshed after completion. My purpose is to refresh the error information the form gets from my workflow. I don't want to use the real-time workflow error message because It's not the style I want.Here is the code

“ function RefreshForm(PrimaryEntityTypeCode, WorkflowId) {

Mscrm.CommandBarActions.launchOnDemandWorkflowForm(PrimaryEntityTypeCode,WorkflowId);
Xrm.Page.data.refresh(false);
} ”

Can find Mscrm.CommandBarActions.launchOnDemandWorkflowForm() rewritten to Callback?  Is there any other solution?

*This post is locked for comments

  • Suggested answer
    Shidin Haridas Profile Picture
    Shidin Haridas 3,497 on at
    RE: Refresh the form after the workflow runs

    I am sorry, but I don't think this is possible.

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans