Power Automate: Difference between revisions

Jump to navigation Jump to search
Tag: Reverted
Tag: Manual revert
 
Line 85: Line 85:
;Link: [https://docs.resco.net/mediawiki/images/4/4c/GenerateAccountOverviewDocument.zip Generate Account Overview Document]
;Link: [https://docs.resco.net/mediawiki/images/4/4c/GenerateAccountOverviewDocument.zip Generate Account Overview Document]


== Creating a custom Resco Reports connector ==


# Open the [https://make.powerautomate.com/ Power Automate] web.
# Go to '''Custom connectors'''. (If the item isn't available, use '''More > Discover all''' to find it.)
# Create a new connector (blank template) and give it a name "Resco Reports". (It's important to have the same name as the AppSource connector.)
# Upload any icon, choose color, and optionally type the following '''Host''' and '''Path''':<br>[[File:Pa-connector-creation.png|alt=power automate - new connector]]
# On the '''Security''' tab, enter the following:
#* Client ID (Resco Report App registration): d776be6c-d03e-4151-92d5-f4d32f17db16
#* Client Secret (provided by Resco support)
#* Generic Dataverse (Dynamics) Resource URL <br>[[File:Pa-connector-security-tab.png|alt=pa connector - security tab]]
# Click '''Create Connector'''.
# Download and install [https://learn.microsoft.com/en-us/connectors/custom-connectors/paconn-cli Microsoft Power Platform Connectors CLI] according to instructions.
# Open Command line (or Terminal on Linux/MacOS) and type a command <code>paconn login</code>. Follow the instructions.
# After successful login, download your new connector definition - type the command <code>paconn download</code>, choose your environment, and then choose your newly created connector "Resco Reports". This creates a folder with connection definition.
# Go to connector definition folder by typing the command <code>cd shared_RescoReports…</code> (use the Tab key to fill in exact folder name).
# Download the official Resco Reports connector definition from [https://github.com/microsoft/PowerPlatformConnectors/tree/dev/certified-connectors/RescoReports Microsoft GitHub page].
# Replace the "apiDefinition.swagger.json" and "apiProperties.json" files in your connector definition with the files from GitHub.
# Open the "apiProperties.json" file in text editor and change the value of property "clientId" with your client ID. Delete the whole line containing text "stackOwner": "Resco" and trailing comma in previous line. Save all changes.
# Return to the terminal and type the command <code>paconn update -s settings.json --secret [Your client secret]</code>.
# Your custom connector should be replaced and ready to use in your Power Automate flows.
# If you observed the error "AADSTS50011: The redirect URI [...] does not match the redirect URIs configured for the application" during connection creation, please copy this text and send it to us to register this unique URL in our Azure App Registration. If you use own Azure App Registration, allow the redirect URL from error on Azure Portal (section '''Authentication''').




Navigation menu