I am trying to fetch a value stored in AssignTo variable in Lookup Cache policy in its following AssignMessage policy.
Lookup Cache policy:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <LookupCache async="false" continueOnError="false" enabled="true" name="Lookup-Cache-1"> <DisplayName>Lookup Cache-1</DisplayName> <CacheResource>CollectionCache</CacheResource> <AssignTo>CacheResult</AssignTo> <CacheKey> <Prefix>Collection</Prefix> <KeyFragment>VendorId</KeyFragment> <KeyFragment ref="request.header.VendorId"/> </CacheKey> <Scope>Exclusive</Scope> </LookupCache>
In the next Assign message policy if I give {response.content},I am able to get the message retrieved from Lookup cache.
But if I use <AssignTo> variable : {CacheResult} or {CacheResult.content},its showing empty.
Is there anything wrong with my Lookup policy?
@RadhamaniRamadoss , It should work out of the box. Can you post your populate cache policy ?
This is not a policy issue. If the cache does not contain the value for the cache key - it will not assign anything to the assignto variable. Please check the population of the cache value.
Thanks @Anil Sagar and @sriki77. I am checking with my proxy flow.I will post the update.