In this article I want to talk about the solution provided by Microsoft for Robotic Process Automation (RPA) through an example that involvingCommon Data Service, Power Automate and Paint… yes, you got it right, Paint 🙂
Let’s do some explanations first!
What is Robotic Process Automation (RPA)?
TheRobotic Process Automation(RPA) automating time-consuming manual processes with UI flows. The RPA capability is provided by Microsoft Power Automate. It is typically used to perform tasks on legacy platforms where integration is not possible or expensive. RPA help organisations to accelerate digital transformation projects without having to replace legacy systems or develop expensive integration solutions.
What is UI Flows?
UI Flowsis the capabilities of Microsoft Power Automate that supports the automation of Desktop App and Web App. In both cases the steps to create an UI Flow are the same, making the configuration as a prerequisite step.
Prepare the Environment
To make a UI Flows on a local environment you need toperform some configurationsthat I report below:
Well, once you completed the configuration of the Data Gateway in our Power Platform environment and in general all steps listed, we can create our UI Flow (the various configurations are not within the scope of this post!):
First, we can open Power Automate and selectUI Flowsunder My Flows to create it:
Next, we select the Type of UI Flow, In our case we want interact with Paint and then select Desktop App:
Into step Set Up Inputs, we can create a dynamic text called Account Name, because we want that Paint drawing dynamically the name entered for the Account in Dynamics 365:
Into step Record and Edit Step, we click Launch recorder to capture all sequence of actions to execute:
In our specific case we must record the opening of Paint, the addition of dynamic text and the saving of the PNG file:
When the registration is complete we will save the UI Flow:
Next, we can create atypical automated flow, where the trigger is when a CDS record is created in the Account entity. In the action we will selectRun UI Flowand will choose the UI Flow that we have created: