We are starting to implement push notifications. We are trying to figure out how to use push treatments in actions. We have created a push treatment and then we added it to an action. How can we configure the flow to send this treatment. The push notification shape has no a field to specify the treatment I want to use. The shape only has space for the message. Is there a way to use this treatment and send it to customers trough push channel?
There are two ways to configure the Push Notification shape in the Action flow in Pega Marketing 8.4. Which option you choose will depend on how you want the treatment to be selected. Are you using Next Best Action designer?
Also, could you please confirm that you are using Pega Marketing 8.4?
When using Next-Best-Action Designer you should create Push Treatments like you've done and associated the Treatment to your Action on the Action's Treatment tab. Steps for configuring the Treatments tab can be found here: https://community.pega.com/sites/default/files/marketinghelp_v84//index.htm#rule-/rule-obj-/rule-obj-flow-/rule-obj-flow-offer/treatments.htm.
You'll also need to add a Push Notification shape to your Action Flow. When configuring the Push Notification shape, in the Message field set the value to '.OfferData.PushMessage' (picture of example configuration attached). This will result in the Push Notification using the message configured in the Push Treatment selected by the Next-Best-Action strategy.
If you were not using a strategy to determine the treatment and Push Treatments you would provide the message text directly in the Push Notification shape's Message field. This usage pattern does not require you to create Push Treatments.
I have tried with the '.OfferData.PushMessage' property. But when we run the NBA the notification is not getting the IOS phone and the schedule shows that 5 actions were sent. Regarding Android the notification on the phone is empty, no message is showed. We tried again with a normal String and it worked. Do you know what might be happening?.
Pleas check the attached files
Posted: 2 years ago
Posted: 21 Jul 2020 14:55 EDT
Saleem Abdelsayed (Saleem_A)
Senior Director, Product Management, 1:1 Customer Engagement
>> But when we run the NBA the notification is not gettinf the phone and the schedule shows that 5 actions were sent
Can you elaborate on what you mean by "not getting the phone"?
Also, are you saying that if you use a static string the message is properly delivered to the phone?
To debug, I suggest you try to include this expression in the push shape: "Treatment Message: " + .OfferData.PushMessage
This will concatenate the text "Treatment Message" with the actual message in the treatment. This will hopefully push at least the prefix part to validate that it is working end to end and then you can review if the .OfferData.PushMessage part is missing for some reason.