If you work with Microsoft Dynamics 365 Human Resources, you know that you can assign a Person to a User within the system. For instance, a new marketing employee will be assigned to a Marketing Manager. If you work in a big organization that hires a lot of people on a monthly basis, you know that it takes a lot of time to assign all these new employees. You might want to consider using an automatic way to do this to save time. In this article, we show you how to setup an automatic process to make this possible.
How to setup the process
The steps look like this:

Step 1: Get the data from the odata URI of workers as shown below with all the authentication with the Active Directory OAuth.

Step 3: Create a ‘for each’ loop. In addition to this, apply the body of the output from previous steps and create a compose action to get the details of fields.

Step 4: Post the data through the http connector to Person Users entity with the required fields and schedule it on a weekly or on a monthly basis to automate the update without manual intervention.

Step 5: If done correctly, all should be setup now. Lets test it.

We will run the Power Automate flow to map the user Alicia and April with the workers

Below is the output.

As you can see, the ‘Person’ fields are now filled in.
Leave a Reply