Avatar

Level 5

Hi,

to complete kapscool's response, I don't think you get the rowid but THE (recipient) id with his method

var recipient= nms.recipient.create( <schemaName    lastName= {"Martinez"}    firstName= {"Peter"}  /> );

recipient.save();

logInfo(" Id of latest recipient added is "+ recipient["id"]);

You can also use the NLWS create method (doc) :

var recipient= NLWS.nmsRecipient.create(

          {recipient: {

            lastName: "Martinez",

            firstName: "Peter"

            }});

recipient.save();

logInfo(" Id of latest recipient added is " + recipient.id);

Kind regards,

Pierre