I want to deactivate a specific offer after a certain 200k view | Community
Skip to main content
Level 3
September 11, 2023
Solved

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

  • September 11, 2023
  • 1 reply
  • 992 views

Hello 

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

we using the offer space

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Marcel_Szimonisz

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


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/

1 reply

Marcel_Szimonisz
Community Advisor
Marcel_SzimoniszCommunity AdvisorAccepted solution
Community Advisor
September 11, 2023

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


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/

rbiriAuthor
Level 3
September 12, 2023

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

Marcel_Szimonisz
Community Advisor
Community Advisor
September 12, 2023

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

Marcel