This happens quite a bit when recycling stuff.
Since there’s not a nice way to export and import Logic Apps as packages (as far as I’m concerned, but feel free to enlighten me), but there’s still a quick workaround for this. Sort of.
Steps to success:
- Create a new Logic App in the destination environment.
- In the designer, add the equivalent connections as you’ve used in the source app (i.e. add a SharePoint action, an Automation action etc and connect to these – one of each is enough).
- Click Code View on the source app and select all the text from the top until “parameters” at the bottom of the text editor, then copy the selected text. Example of where to stop below, from a project utilizing the SharePoint connector:
"parameters": {
"$connections": {
"value": {
"sharepointonline": {
"connectionId": "/subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/RESOURCEGROUPNAME/providers/Microsoft.Web/connections/sharepointonline",
"connectionName": "sharepointonline",
"id": "/subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/providers/Microsoft.Web/locations/norwayeast/managedApis/sharepointonline"
}
}
}
}
5. Enter Code View on your destination app.
6. Select all the text above “parameters”: { in the same manner as you did when copying. Paste and save.
Voila!
Leave a Reply