Avatar

Correct answer by
Community Advisor

Hi ,

If you want to use newly created row ID just after creating a record  then I will suggest you to use second way to create records i.e usinf create method.

var object = namespace.schemaName.create( <schemaName    col1 = {"value1"}    col2 = {"value2"}   /> );

object.save();

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

Thanks,

Kapil

View solution in original post