Hi, Building a custom connector, tried to add a Policy for setting the Host Url from a value of the body.
Body contains a structure like this:
{
"inputs": {
"host": {
"connectionName": "xxx",
"operationId": "Sendmsg",
"apiId": "/providers/Microsoft.PowerApps/apis/xxxx"
},
"parameters": {
"body/header/id": "@triggerBody()['text']",
],
"body/data/MyHostUrl": "@triggerBody()['text_2']",
( ... )
},
}
}
I would like to use the value of the pink value body.data.MyHostUrl as a Host Url, but I'm not familiar with expressions.
Tried: (with no success):
@queryParameters('MyHostUrl')
@queryParameters('data.MyHostUrl')
@queryParameters('body().data.MyHostUrl')
@queryParameters('body.data.MyHostUrl')
@queryParameters('@body().data.MyHostUrl')
In this screen:
And I receive all the time an error like this:
I feel fustrated
Anybody with expirience building custom connectors could help me sleep again?
Very appreciate
Thank you v/much
Any idea? 😨I'm very stressed because of this, thank u
Michael E. Gernaey
497
Super User 2025 Season 1
David_MA
436
Super User 2025 Season 1
Riyaz_riz11
244
Super User 2025 Season 1