Microsoft Dynamics posted: " Our goal is to call a canvas app from ribbon button and fill in the calling record in the canvas app. We will use Smart Button from develop1.net. https://github.com/scottdurow/RibbonWorkbench/releases Smart Button provides a unusually easy way to d"
Smart Button provides a unusually easy way to deal with the ribbon button ordeal. You just need to install the solution for smart button after ribbon workbench and then use ribbon workbench which will then show the Smart Button option.
Step 3: Open Ribbon Workbench and left side will show below option :
You get option to:
Run Report
Run Workflow
Run Webhook
Quick JS
Open Dialog.
In this example, we are trying to open canvas app from ribbon button and passing parameter.
Lets create a environment Variable by the name test_CanvasAppUrl which will have the URL of canvas app.
We will configure it on Smart Button as shown passing the environment variable in as URL {%environmentvariable%}
The Smart Button create JS in the backend which then pass two paramter in the URL of canvas app:
recordId
recordLogicalName
You can consume them as below in your canvas app. We are setting the variable with recordId and recordLogicalName and then mapping the variable to a combobox control so that whenver our app loads, the contact combobox is auto filled.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.