Get Slot Content definations based on Campaign and Promotions #444
ajaind1m
started this conversation in
Team Posts
Replies: 2 comments
-
Hi ajaind1m,
Following line will get you all promotions configured in the BM:
var promotions = dw.campaign.PromotionMgr.getPromotions()
And from there if you write the following code, you will get the callout
messages for all these promotions:
var callOuts = [];
for each (var promo in promotions){
if(promo.calloutMsg){
callOuts.push(promo.calloutMsg);
}
}
return callOuts;
Here callOuts is an ArrayList with all the available callout messages.
Thanks and regards,
Dhruv Goel
…On Mon, 29 Jul 2019, 20:57 ajaind1m, ***@***.***> wrote:
Hi All,
I am not able to find slot details from campaign/promotion manager API.
Is there any alternative to get details from campaign promotion not OCAPI?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/orgs/SalesforceCommerceCloud/teams/community/discussions/95?email_source=notifications&email_token=AMIOQ5SI3P42FLCKA3YM32TQB4D7VA5CNFSM4IHTSHF2YY3PNVWWK3TUL52HS4DFVZCGS43DOVZXG2LPNZIG643UVJRW63LNMVXHIX3JMTHAAAJEHM>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMIOQ5XXUH2ISVJQDDT26A3QB4D7VANCNFSM4IHTSHFQ>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi Dhruv, Thanks for reply, but here i am looking for solution to fetch slotID from campaign. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
I am not able to find slot details from campaign/promotion manager API.
Is there any alternative to get details from campaign promotion not OCAPI?
Beta Was this translation helpful? Give feedback.
All reactions