I am trying to extract the value of an element in the XML retuned by the AccessEntity policy and been unable so far.
Here are my policies:
AccessEntity policy
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <AccessEntity async="false" continueOnError="false" enabled="true" name="AccessEntity.App"> <Properties/> <EntityIdentifier ref="flow.auth.clientId" type="consumerkey"/> <EntityType value="app"/> </AccessEntity>
ExtractVariables policy
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ExtractVariables async="false" continueOnError="false" enabled="true" name="ExtractVariables.ClientCode"> <Source>AccessEntity.AccessEntity.App</Source> <VariablePrefix>appConfig</VariablePrefix> <XMLPayload> <Variable name="clientCode" type="string"> <XPath>/App/AppId</XPath> </Variable> </XMLPayload> </ExtractVariables>
Find below a scrreenshot of what I see in trace.
As you can see the variable appConfig.clientCode is not being extracted. Any ideas what might be done wrong?
@Miren ,
I believe it's just the trace issue. Trace is not displaying the extracted flow variable. If you print same, value is actually available as flow variable.
I can able to reproduce trace issues, Value is actually extracted & available for use in policies. See the proxy that is working for me below.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |