Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!

nms:interaction via soap call returns an offer-id , which does not exist in the database

Avatar

Level 1

Hi,

I am fetching offer proposition using soap call.

There are 5 offers which are eligible for my recipient.

Issue 1 :

I get a result with one propositions, where the returned ‘offer-id’ does not exist in database

Result

<propositions>

  <proposition id="28007" offer-id="-2082934409" offerSpace-id="xxxx" rank="1" weight="1">

    <view>

      <imageUrl></imageUrl>

      <trackedUrls>

        <url></url>

      </trackedUrls>

<shortContent>XXXX_01</shortContent>

    </view>

  </proposition>

</propositions>

The above offer id does not exist in database.

Issue 2 :

I get only one result while,I put the count as 10.

Here is my soap call

var cnx = new HttpSoapConnection("https://server/interaction/liveRcp/email")

var session = new SoapService(cnx, "nms:interaction")

var count = 10

var target = xxxx

function propose(){

try

{

  

     session.addMethod('Propose', "nms:proposition#Propose",

       ["targetId",      "string",

        "maxCount",      "string",

        "categories",    "string",

        "themes",        "string",

        "context",       "NLElement"],

       ["interactionId", "string",

        "propositions",  "NLElement"])

     var result = session.Propose(target, count, category, theme, <empty/>)

     var props = result[1]

 

   

   return props;

 

}

catch( e )

{

      document.write('in catch - ' +  e)

}

}

Any help would be appreciated

Br

Vedant

0 Replies