DYNAMICS 365 PORTAL HOW TO CALL AND EXECUTE WORKFLOW
In this tutorial, you'll learn how to call and execute workflows in Dynamics 365 portals. While calling workflows from portals can easily be done by configuring and adding buttons in entity lists or entity forms, there are occasions when you need to call a workflow from a web page without an entity list or form.
Fortunately, all portal pages come with a JS reference to the file "js\antiforgerytoken.js" that contains the "shell" object, which has a method called "ajaxSafePost" that you can use to achieve request calls to the server. The tutorial provides an example of how you can use the "ajaxSafePost" method to invoke the "Execute Workflow" service.
The tutorial also highlights how to get the execute workflow request URL by adding a temporary "call workflow" button on an entity list or form and using the Developer tools (F12) of your browser to get the workflow URL from the data-url property.
To make it even easier to understand, the tutorial includes a function created to take the parameters needed to execute the workflow. The author also provides two bonus tips to keep in mind when executing workflows from the portal. Lastly, the author links to other portal-related articles to help you further.
Overall, this tutorial serves as a useful guide for anyone looking to execute workflows from Dynamics 365 portals.
Published on:
Learn moreRelated posts
What is Legal Entity in Dynamics 365 F&O ? How to create a Legal Entity in Dynamics 365 F&O
A "legal entity" is an organization that has registered with a legal authority, legal entity can enter legal contracts and are required to pre...
Get Related Entity data along with primary entity data in MS Dynamics CRM using QueryExpression
If you're looking to enhance the functionality of your MS Dynamics CRM by accessing related entity data along with primary entity data, this t...
Trigger Workflow Using JavaScript
Learn how to trigger a workflow using JavaScript in this informative tutorial. With this technique, you can activate a workflow programmatical...
Microsoft Purview compliance portal: Data Loss Prevention – Trigger Power automate workflows as outcome of DLP rule match
Microsoft Purview Compliance Portal is introducing a new Data Loss Prevention(DLP) rule that allows you to trigger custom workflows in Power A...
Microsoft Teams: Workflows App
Power Automate workflows in Microsoft Teams are getting a major boost with the introduction of the Workflows app. This consolidation brings al...
Microsoft Purview compliance portal: Information Protection – Named entity coverage for additional markets and languages
The Microsoft Purview compliance portal now offers expanded coverage for Named Entities in additional markets and languages. Named Entities re...
Check Parent Entity Name From Child entity form D365 CE
If you are working with Dynamics 365 Customer Engagement and need to validate a child entity form based on the parent entity, this tutorial ca...
CREATE DYNAMICS 365 ENTITY IN SDK
If you're looking to create a custom entity in Microsoft Dynamics 365 using SDK, this tutorial provides a step-by-step guide on how to do so. ...
Enable custom entity for outlook dynamics 365
This video provides a step-by-step guide on how to enable a custom entity for Outlook in Dynamics 365. By doing so, you can easily view and ma...