Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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!

  • ApiTrader Profile Picture
    163 on at
    Re: Backing up Flows and Create Flow action

    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow