Using “?a=UpdateStatus” parameter with Interaction (Offer Engine)

Avatar

Avatar

nicolletta

Avatar

nicolletta

nicolletta

02-11-2016

Hello everyone,

I’m new to Adobe and I’m trying to use Interaction Engine and “?a=UpdateStatus”  parameter as described in interaction-v6.1-en.pdf page 26 for “Inbound interaction” from a web page but the status of the proposition doesn’t change. I’m not sure to understanding where to put:

<BASE_URL>?a=UpdateStatus&p=<PRIMARY_KEY_OF_THE_PROPOSITION>&st=<NEW_STATUS_OF_THE_PROPOSITION>&r=<REDIRECT_URL> and what BASE_URL stands for.

I’ve tried to put http:// [url of the Offer Engine]?a=UpdateStatus&p=<%= proposition.proposition_id %>&st=<2>&r="https://page.html" in the web page that I used for calling the offer module, but it doesn’t work.

As per my understanding I don’t need to write extra code to modify proposition status, using UpdateStatus is enough. Can you please tell me if this is right?

 

Thank you for your suggestions and best regards,

Nicoleta

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

thomasb1964232

Avatar

thomasb1964232

thomasb1964232

03-11-2016

Hello Nicoleta,

This link can be put directly in the offer content so that the person seeing the offer can just click on it, resulting in a status update. Can you try the following:

  • Pick a real proposition id from the DB and try the following link in your browser (notice that there is no "<>" arround the "st" parameter value, nor quotes around the "r" parameter value):
http://my.server/interaction/myLiveOfferEnv/myOfferSpace?a=UpdateStatus&st=2&p=<%=proposition.propos...

by replacing "my.sever", "myLiveOfferEnv", "myOfferSpace" and "my.website.com" with proper values.

  • When it works, you can for instance put a link in the offer content:
<a href="http://my.server/interaction/myOfferEnv/myOfferSpace?a=UpdateStatus&st=2&p=<%=proposition.proposition_id%>&r=http://my.website.com">Accept the offer</a>

Best regards,

Thomas

Answers (3)

Answers (3)

Avatar

Avatar

nicolletta

Avatar

nicolletta

nicolletta

04-11-2016

Hello Thomas,

 

Thank you so much for your answer. It works now. So I’ve took the BASE_URL from “Offer – live” à “Administration”à “Offer Space” à Proprieties à URL and then added ?a=UpdateStatus&p=<%= proposition.proposition_id %>&st=2&r=https://www.nissan.it/veicoli/veicoli-nuovi/qashqai/offerte/qashqai-n-vision.html.

Can you please tell me if it is recommended to “Define the acceptance URL” also?  Or this is not required information on the offer?

Best regards,

Nicoleta 

Avatar

Avatar

nicolletta

Avatar

nicolletta

nicolletta

03-11-2016

Hello Fleltuerto,

I’ve used a Query object on NmsPropositionRcp to see the status (Status field) of the proposition I’ve send to the client. Please see attached file. Status field doesn’t change to ‘Interested’ (value 2) that I’ve put in my URL.

SELECT   P0.iPropositionId, P0.iOfferId, O1.iOfferId FROM NmsPropositionRcp P0 JOIN NmsOffer O1 ON (O1.iOfferId = P0.iOfferId) WHERE (O1.sName LIKE E'%' || E'OFR100' || E'%' ESCAPE E'\\') LIMIT 10001

I’ll send you the direct link in private message.

Regards,

Nicoleta

Avatar

Avatar

florentlb

Total Posts

1.1K

Likes

234

Correct Answer

239

Avatar

florentlb

Total Posts

1.1K

Likes

234

Correct Answer

239
florentlb

03-11-2016

Hello Nicoleta,

Can you share more details about what you obtain when you say "it doesn't work"? Do you get an error message?

Also, can you share the exact link you obtain for the page in a direct message to me?

Thanks,

Florent.