Expand my Community achievements bar.

Join us for the Adobe Campaign Community Q&A Coffee Break on 30th September at 8 am PT with Campaign experts Arthur Lacroix and Sandra Hausmann.
SOLVED

I want to deactivate a specific offer after a certain 200k view

Avatar

Level 3

Hello 

we have this workflow running once a week where we sending multi offer communication.

we using the offer space

rbiri_0-1694455402114.png

to be displayed in our emails.

But we want know one specific offer to be deactivate automatically after 200k views

 

I have dig around and I was wondering if it should be done through a rules or through the current wf where I should implement that condition, or do we have a function with adobe classic v7 allowing that?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @rbiri,

If there is no option in offer settings to disable offer after 200k views (I am afraid there is not) then you need to implement trigger that will  simply call SOAP nms:offer cancel method.
This is JSAPI function but there is also SOAP version of same function
https://experienceleague.adobe.com/developer/campaign-api/api/sm-offer-Cancel.html

WSDL example

Marcel_Szimonisz_0-1694459587118.png


You can get the WSDL by navigating to your instance url

 

https://example.com/nl/jsp/schemawsdl.jsp?schema=nms:offer

 

 

Marcel Szimonisz

MarTech Consultant
for more tips visit my blog
https://www.martechnotes.com/

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hello @rbiri,

If there is no option in offer settings to disable offer after 200k views (I am afraid there is not) then you need to implement trigger that will  simply call SOAP nms:offer cancel method.
This is JSAPI function but there is also SOAP version of same function
https://experienceleague.adobe.com/developer/campaign-api/api/sm-offer-Cancel.html

WSDL example

Marcel_Szimonisz_0-1694459587118.png


You can get the WSDL by navigating to your instance url

 

https://example.com/nl/jsp/schemawsdl.jsp?schema=nms:offer

 

 

Marcel Szimonisz

MarTech Consultant
for more tips visit my blog
https://www.martechnotes.com/

Avatar

Level 3

hello

About the WSDL screenshot, is it a script we implement in a schema?

I have only used SOAP to feed a table with mock data in the past, so not sure how to implement the solution provided, I dont see how I coud automate a call SOAP eveytime the multioffer wf is launched

Avatar

Community Advisor

it is just another function that you can call via soap.. this one will cancel offer when called 

Marcel