Expand my Community achievements bar.

Join us LIVE in San Francisco on November 14th for Experience Makers The Skill Exchange. Don't miss out on this free learning event!

Create target using javascript

Avatar

Level 7

Hello, I'm trying to create a delivery using Javascript, but I don't know how to fill the target to send the delivery.

 

I've tried doing this:

  var delivery = nms.delivery.create();

  delivery.label="Delivery Test"
  delivery.scheduling.validationMode = "automatic"
  delivery.scheduling.delayed = 0
  delivery.targets.deliveryTarget.serialization="'language equal to Ru'"
  delivery.save()

But the property delivery.targets.deliveryTarget.serialization doesn't seem to be enough to populate the delivery target.

 

0 Replies