Unable to extract value from AccessEntity policy resulting XML

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.

3769-trace.png

As you can see the variable appConfig.clientCode is not being extracted. Any ideas what might be done wrong?

1 1 140
1 REPLY 1

@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.

3772-screen-shot-2016-10-19-at-24316-pm.png

3770-screen-shot-2016-10-19-at-24141-pm.png

apihello2-rev6-2016-10-19.zip