Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create-ExportPackage : The property 'connectionReferences' cannot be found on this object #15

Closed
acieslik opened this issue Aug 9, 2023 · 3 comments
Assignees

Comments

@acieslik
Copy link

acieslik commented Aug 9, 2023

I have multiple flows that somehow do not have a connection reference.
This is why the doc generation will fail in line 87/88:

$body = @{ includedResourceIds = @( "/providers/Microsoft.Flow/flows/$($flow.FlowName)" $flow.Internal.properties.connectionReferences.PSObject.Properties.value.id $flow.Internal.properties.connectionReferences.PSObject.Properties | Foreach-Object { $('{0}/connections/{1}' -f $($_.value.id), $($_.value.connectionName)) } )

@stefanstranger stefanstranger self-assigned this Aug 9, 2023
@stefanstranger
Copy link
Owner

stefanstranger commented Aug 9, 2023

Maybe this attribute is not required to create the export package. Let me check this.

@acieslik
Copy link
Author

acieslik commented Aug 9, 2023

I can confirm that if you leave out the two lines with connectionReferences it will work, but you cannot leave out the includeResourcesIds completely:

This works:

$body = @{
    includedResourceIds = @(
        "/providers/Microsoft.Flow/flows/$($flow.FlowName)"
    )
    details             = @{
        displayName       = $flow.DisplayName
        description       = $flow.DisplayName
        creator           = 'logicappdocs'
        sourceEnvironment = $flow.EnvironmentName
    }

acieslik pushed a commit to acieslik/logicappdocs_ac that referenced this issue Aug 10, 2023
@stefanstranger
Copy link
Owner

I added you suggestion in my development branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants