Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Combining two buttons

Posted on by 155

I have a button on the entity salesorder that calls a workflow that calls a custom workflow activity that adds a product to salesorderdetail.

I also have a second button that calls a JavaScript function that refreshes the salesorderdetail sub grid.

As everything is functioning, I would to streamline the process and have one button that does every.

e.g. the button would add a product to the salesorderdetails and then refresh the salesorderdetails.

What would be the best way to combine buttons in this scenario?

  • Verified answer
    meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: Combining two buttons

    Hi, 

    You can use the second button to run your Workflow via JS code and then refresh your sub grid.

    You can refer to this blog: https://chandanakommuri.wordpress.com/2019/01/25/execute-workflow-using-xrm-webapi-in-dynamics-crm-version-9-0/

    The blog explains how to run a Workflow using Javascript. 

    Good luck !

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans