CaptureResponseAndInititateOffer - Execute offer flow from an activity
We are using CaptureResponse service (OOTB) to update Pega Interaction History with the outcome based on the interactionId. It exists a requirement to execute an offer flow if the outcome has a specific value. We have tried to use the functionality in the activity CaptureResponseAndInitiateOffer, but it is not working. It creates a new record in the IH with the outcome=Pending but it does not execute the offer flow. How can we execute an offer flow from an activity? Does it exist anything ootb?
Thank you in advance.
***Edited by Moderator: Pallavi to update platform capability tags***
if you pass "Initiate" for the (ProcessOffer) url it will initiate the offer. The service internally does not provide any logic to determine when the offer should be initiated based on any outcome. The initiation is purely controlled based on the resource path parameter.
If you are observing the Pending IH record that the offer flow has been initiated. If the offer flow has a Wait shape in it then you should check the MKT_DATA_OFFER table if there is an entry for this offer. If there are no wait shape you can add an Update Status shape in the flow which would then insert an ew IH entry and you can confirm based on that. Offers with no wait shapes will not be stored in MKT_DATA_OFFER.
UpdateStatus shape is working, but if I add a HandOff shape and I try to execute an activity, it does not work. Is the behavior of the offer flow the same or it depends on the trigger (campaign, MKTEvent, CaptureResponse...)? The same offer flow executes an activity during the campaign execution but with the captureResponseAndInitiateOffer request the activity is not executed.