Hi Expert,
How to change ship-to type using web service? I can't find a field in "Sales header" that represent this ship-to type:

Hi Expert,
How to change ship-to type using web service? I can't find a field in "Sales header" that represent this ship-to type:
There is no ship type field in the table, the value is determined on the page based on the value in Ship-to Code, Ship-to name and Ship-to Address, you can check the logic in the codeunit 1302, below is the snippet how it determines the value
ShipToNameEqualsSellToName := ("Ship-to Name" = "Sell-to Customer Name") AND ("Ship-to Name 2" = "Sell-to Customer Name 2"); CASE TRUE OF ("Ship-to Code" = '') AND ShipToNameEqualsSellToName AND ShipToAddressEqualsSellToAddress: ShipToOptions := ShipToOptions::"Default (Sell-to Address)"; ("Ship-to Code" = '') AND (NOT ShipToNameEqualsSellToName OR NOT ShipToAddressEqualsSellToAddress): ShipToOptions := ShipToOptions::"Custom Address"; "Ship-to Code" <> '': ShipToOptions := ShipToOptions::"Alternate Shipping Address";