I checked the Pega Marketing documentation for the Realtime Container REST Interfaces, but I'm not happy with this description. For example in code ther exists a Context field, which is a page list. But this is not described in this document.
Can somebody provide me detailed and complete IF description of all Realtime Container REST Interfaces?
Sorry about the documentation not being helpful. We will review it and improve it so that is accurate and helpful.
While trying to help you out I have identified an error in our documentation which does not provide the correct information about the JSON payload for Real Time Containers with the context values. The Context field is actually a list where you can pass in multiple context entries in the request payload. These entries can be additional meta data that you can pass down to the CDH for making your decisions. Example is given below.
I voted for your answer as correct answer. It worked for me, but only after fixing a typo on the function call above which should be: @GetContextValue("Intent","IntentName",Primary.ContainerPayload.Contexts)
Still there is something missing on my run results with regards to interaction history: would you know why my container is not recording Pending nor Impression for the proposition served in Pega 8.1? The container is configured with: "Impression Capture"="Capture on retrieval".
Thank you Andre for brining this to my notice. I have corrected my response to show the correct usage of the function and yes the function can be used when the strategy is in Data-Decision-Request-Customer.
Regarding the current issue you are facing, have you checked the logs to see if there is any exception in the logs? Are all the DSM services (like DDS, ADM, VBD) node types configured and are in Normal status?
Apologies if I missed if it is mentioned any where but is your Container rule configured to capture impressions on retrieval. This is an option that you can configure. If not then are you explicitly capture impressions via the capture response service?
If would be great if you can explain your usecase and what you are trying to do?