Scenario Overview

The business scenario here is that you have an Accountancy firm that generates end of year accounts for its customers. At the end of the financial year for each customer they need to send an email with the end of year accounts & a signature page. These two documents will be attached to the Account entity. Please note this is a very simple setup for the sample just to get the concept across. In reality there would be a more robust way to select \ find the attachments.

So in this scenario the users needed the ability to execute a workflow on an Account record which would, 

  • Generate an Email
  • Find all the attachments on the account record
  • Add these attachments to the Email created above

Account Record

Email Record

North52 Decision Suite Solution

The North52 Decision Suite solution works like this,

  • A formula of type 'Process Genie' is created so it can execute as a step within a workflow
  • When it reaches the 'Process Genie' step in the workflow it will execute the formula
  • The formula looks up the list of Case IDs associated to the current account
  • It then creates a note record associated to the account with this list

North52 Decision Suite Steps

The following set of steps outline how to create this Formula

  • Create a new formula of type 'Process Genie'
  • Set the Source Entity to 'Email'
  • Copy & paste the formula below into the formula 
  • Click save

Workflow Steps

The following set of steps outline how to create this Formula

  • Create a new workflow named 'Generate Email with Attachments'
  • Set it to run only 'On Demand'
  • Add a new step to create an email
  • Add a new step to the workflow to call the North52 Process Genie
  • Set the formula shortcode to be the one on the formula you just created, in this case 'vbG'
  • Set the Primary Entity ID to be the Dynamics Record URL of the create Email step
  • Add a step to change the status of the email to 'Pending Send'
  • Publish the workflow
  • You are now ready to test




             FindRecords('annotation', 'objectid', [email.regardingobjectid] , '*'), 
             if( CurrentRecord('isdocument') = true,
                                 [email.activityid] ,
                                 [email.activityid] ,


Wizard - FindRecords

Please see below the wizard you can use to create the FindRecords() function call used in this formula. 

Note to find the value for Equals Value, you will need to go to the Source tab and search for "regarding" . 

Also for annotation, search for "Note"

Did you know?

North52 TestShield allows rigorous regression testing of your Dynamics 365 system in-sprint

As well as being scheduled, or triggered from build pipelines, TestShield automated tests can be triggered manually for a quick mid-sprint regression test. This allows for quick testing of alternative ways to implement a requirement and measure the impact on existing processes. 

It's quick to clone an existing test and try variations without affecting the original test set up too.

Learn how TestShield can help your Dynamics 365 project