web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Backing up Flows and C...
Power Automate
Unanswered

Backing up Flows and Create Flow action

(0) ShareShare
ReportReport
Posted on by 2

Hi All,

 

I currently have two flows: One is for backing up workflows, and the other is for restoring. Please see screenshot of my first flow below.

francis_darelle_0-1676360228750.png

 

The flow is being backed up by creating two files that has the following content: Flow Definition Summary (JSON file), and Connection Reference (txt file), which was obtained through the "List my flows" action. 

 

Screenshot of my second flow is below

francis_darelle_1-1676360596406.png

The two get file actions will get the two files created by the first flow. The content of the PARSE JSON is the output body of the previous action which refers to the file that has the "FlowConnection". 

 

The help I need is I need to know what values/fields I need to input to the "Create Flow" action. As I am having errors with the current setup I have. 

 

Error is:

The request content was invalid and could not be deserialized: 'Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'Microsoft.WindowsAzure.ResourceStack.Common.Collections.InsensitiveDictionary`1[Microsoft.Azure.Flow.Templates.Schema.FlowTemplateTrigger]' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly.
To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.
Path 'properties.definition.triggers', line 5, position 19.'.

 

 

Thank you!

Categories:
I have the same question (0)
  • ApiTrader Profile Picture
    174 on at

    hey, did you solve it? I am facing the same issue at the present, just related to the connectionReferences. I figured out that the connectionReference dont like neither an empty array nor an empty json. If the connectionReference is indeed empty. 

    On that function I receive the attached error: 

    if(equals(length(outputs('Get_Flow')?['body/properties/connectionReferences']),0),json('{}'),outputs('Get_Flow')?['body/properties/connectionReferences'])

    ApiTrader_0-1691429236152.png


    as workaround I worked with a condition, which is really weird... 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard