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

The property '$connections' cannot be found on this object #6

Closed
acieslik opened this issue Aug 2, 2023 · 5 comments
Closed

The property '$connections' cannot be found on this object #6

acieslik opened this issue Aug 2, 2023 · 5 comments
Assignees

Comments

@acieslik
Copy link

acieslik commented Aug 2, 2023

Before calling...

Line 325:
$Connections = Get-Connection -Connection $($LogicApp.properties.parameters.'$connections'.value)
or
Line 334:
$Connections = Get-Connection -Connection $($LogicApp.parameters.'$connections'.value)

it needs to be checked, if this property even exits, otherwise the script will fail with:
The property '$connections' cannot be found on this object. Verify that the property exists.

@acieslik
Copy link
Author

acieslik commented Aug 2, 2023

image
I fixed it like this, maybe there are better options

@stefanstranger
Copy link
Owner

Let me have a look at this issue. Just to be clear, you have a flow without any connections?

@stefanstranger stefanstranger self-assigned this Aug 3, 2023
@acieslik
Copy link
Author

acieslik commented Aug 3, 2023

Yes, its a logic app that triggers on "When a HTTP request is received" and itself will only use an HTTP action, check the results and returns a proper HTTP response. So for such use cases connections are not required.

@stefanstranger
Copy link
Owner

Hi @acieslik,

I made some changes to the solution and also fixed the issue when no connections are configured. Can you please download the latest version via:

git pull main

And let me know if this fixed the issue?

Regards,
Stefan Stranger

@acieslik
Copy link
Author

acieslik commented Aug 7, 2023

Now it works just fine. Thanks!

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