IT and Development
Microsoft Power Automate
7min
with the microsoft power automate app in {{product name}} , you can manage your run desktop flow in your microsoft power automate account requirements to use the microsoft power automate app in {{product name}} , you must have a microsfot power automate account an azure account to create custom apps connect microsoft power automate and {{product name}} you can connect to microsoft power automate in two ways microsoft power automate docid\ xq8wkjwxkb8siapvpu zt microsoft power automate docid\ xq8wkjwxkb8siapvpu zt connect using basic oauth 2 0 authentication to create the connection log in to your {{product name}} account, add a microsoft power automate module to your {{scenario singular lowercase}} , and click create a connection optional in the connection name field, enter a name for the connection optional in the ms power automate desktop environment id field, enter your environment id from your power automate account leave this field empty to choose your default environment if you have multiple environments, go to the power automate admin portal to copy the desired environment id click save if prompted, authenticate your account and confirm access you've successfully created the connection and can now use the microsoft power automate app in your {{scenario plural lowercase}} if you want to make changes to your connection in the future, follow the steps connect an application docid\ so88fm6pkt0g adkddfzz connect using oauth 2 0 and your own credentials to connect to power automate with your own credentials, you need to create a custom app in your azure account and obtain the client credentials of the app log in to azure portal com click app registrations click new registration enter the details as provided in the table below and click register field description name enter the app's name that you want to connect supported account types select the option, accounts in any organizational directory (any azure ad directory multitenant) redirect uri select the following options platform web redirect uri https //auth redirect celonis cloud/oauth/cb/microsoft power automate you can find the client id and tenant id details on the app screen to add a client secret, click add a certificate or secret click new client secret enter a description and select the expiry period for the client secret click add copy the client secret to a safe place in the manifest section, change the allowpublicclient value to true , and click save log in to your {{product name}} account, add a microsoft power automate module to your {{scenario singular lowercase}} , and click create a connection optional in the connection name field, enter a name for the connection optional in the ms power automate desktop environment id field, enter your environment id from your power automate account leave this field empty to choose your default environment if you have multiple environments, go to the power automate admin portal to copy the desired environment id in the client id , client secret , and tenant id fields, enter the values copied above click continue if prompted, authenticate your account and confirm access you've successfully created the connection and can now use the microsoft power automate app in your {{scenario plural lowercase}} if you want to make changes to your connection in the future, follow the steps connect an application docid\ so88fm6pkt0g adkddfzz microsoft power automate modules after connecting to the microsoft power automate app, you can use the following types of modules to build your {{scenario plural lowercase}} run desktop flow set up a desktop flow connection if you use the on premises data gateway to trigger desktop flows field description connection microsoft power automate docid\ xq8wkjwxkb8siapvpu zt select ms pad flow connection enter the connection flow id of the desktop flow you want to run to create a flow connection, see connections you can get the connection id in your power automate account at data > connections > select the connection > url in the url address, find a part which says, connectionname and copy the id that follows it select ms pad desktop flow select or map the flow you want to run only the desktop flows created in your microsoft power automate account are displayed here the map function allows a user to map a value from one of the previous modules instead of selecting a bot from the dropdown list to create a desktop flow, see ui flows flow input fields add the input variables for the flow these variables are passed to and from desktop flows, allowing you to create sophisticated flows to create variables, see input variables select run mode select the run mode for the desktop flow depending on your settings attended requires an active windows user session that matches the name of the user configured for your connection the session must not be locked when an attended desktop flow starts on the target machine, it is recommended to avoid interacting with your device until the run completes unattended the target machine needs to be available with all users signed out you cannot launch flows with elevated privileges to learn more about run modes, see desktop flow modes microsoft power automate resources microsoft power automate documentation