You are currently viewing Adding a Canvas App to a Model Driven App-Part 2 Document Checklist and Uploading files to Dataverse vs SharePoint

Adding a Canvas App to a Model Driven App-Part 2 Document Checklist and Uploading files to Dataverse vs SharePoint

  • Post author:
  • Post category:Uncategorized
  • Post comments:0 Comments

2/19/2023


The Why

In this section we will go over the basic automation for adding the individual checklist items for each request. These checklist items will then be viewed in the canvas app on our MDA.

This part of the guide goes over how to save the documents to a Dataverse table. If you want to save the files to SharePoint instead, go to part three of the guide.

The How

  1. From the solution create a new automated flow that is triggered when a new item is added
  2. Set the trigger as follows
  3. Create a condition based on the cost that if the cost is greater than or equal 1000
  4. On the no side, create a Scope with three add a new row cards
  5. Set each card as follows, for the lookup column you will need to get the entity set name of the table. Us the below code to get the entity set name. Replace the ORGID with your your organization ID.
    https://ORGID.crm9.dynamics.com/api/data/v9.1/EntityDefinitions(LogicalName='tablelogicalname')?%24select=EntitySetName
  6. Update Each card to meet the specific needs of the document.
  7. Repeat the same process for the Contract side of the flow > 1000.
  8. This flow will create the individual checklist items that will now be displayed in the canvas app. If we go back to the MDA and create a record we will now see the rows pop up in the Canvas app.

In the next guide we will go over finishing up the canvas app.

Leave a Reply