cancel
Showing results for 
Search instead for 
Did you mean: 

ShipFromItemLocation on Sales order Item

Former Member
0 Kudos

Does anyone have experience setting the ShipFromItemLocation on a sales order line in the SDK?

I am doing the following

if (!item.ShipFromItemLocation.IsSet()){

  var itemsfl=ir.ShipFromItemLocation.Create();

}

but itemsfl  is always not set...

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member200567
Active Contributor
0 Kudos

Hi Billy,

What is ir in ir.ShipFromItemLocation.Create()?

Best Regards,

Fred

Former Member
0 Kudos

sorry copied wrong should be

if (!item.ShipFromItemLocation.IsSet()){

  var itemsfl=item.ShipFromItemLocation.Create();

}

former_member200567
Active Contributor
0 Kudos

Hi Billy,

As far as I tested, we don't need to create ShipFromItemLocation.

After an item has been created, ShipFromItemLocation is created automatically.

The following will do.

this.FulfilmentPartyCategoryCode.content ="1"; // Internal

if(this.ShipFromItemLocation.IsSet()){

  this.ShipFromItemLocation.LocationID.content="SiteID";

}

Best Regards,

Fred

Former Member
0 Kudos

The IsSet is always false if Transportation lanes are not set up to default the Ship From...

former_member200567
Active Contributor
0 Kudos

Hi Billy,

Yes, transportation lane is mandatory for logistics.

Best Regards,

Fred

Former Member
0 Kudos

unless you manually set them on a sales order.

former_member200567
Active Contributor
0 Kudos

Hi Billy,

Sorry, I don't understand.

Can we set transport lanes manually in sales orders?

Best Regards,

Fred

Former Member
0 Kudos

If they are not set up for specific items then there will be no Ship From location... My issue is that in this case the system is not letting me set the Location via code...(above)  while i can do it manually.

former_member200567
Active Contributor
0 Kudos

Hi Billy,

But that will give errors even if we fill manually without the transport lane configuration. And customer demand cannot be released.

Please refer to this help document :

Ship-From Determination and Shipment Scheduling for Customer Demand

Best Regards,

Fred