Using variable as value of using ExtensionCalloutPolicy

Hi,

inside a sharedFlow I have a step which is an ExtensionCallout.
Inside the ExtensionCallout I would use a variable in order to select the extension to use.

Eg:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ConnectorCallout async="false" continueOnError="true" enabled="true" name="EC-executeAction">
    <DisplayName>EC-executeAction</DisplayName>
    <Connector>{variableConnector}</Connector>
    <action>getAccessToken</action>
    <input>{}</input>
</ConnectorCallout>

But the shared flow won't deploy

Unexpected Validation Error Illegal character in query at index 92: https://api.enterprise.apigee.com/apigee-cmgmt/extensions?tenant=myorg:mydev&name={variableConnector....

I notice that the variable hasn't been evalueated but used as string as it is.

Is there any way to use variable as connector's tag value ?

0 1 72
1 REPLY 1

Variables aren't supported everywhere, so in this instance you'll have to provide the string in the policy.

Also, use native Apigee policies instead of using the Extension.