Expand my Community achievements bar.

Create target using javascript


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'"

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


0 Replies