• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

bvuser
#1 Posted : Monday, July 2, 2007 5:27:14 PM(UTC)
bvuser

Rank: Member

Joined: 4/10/2006(UTC)
Posts: 462

While creating a new workflow task, I have noticed that the order.ShippingAddress property is marked as deprecated, however in browsing the class, I do not see any other way to retrieve the shipping address from the order. I set a method SetShippingAddress, but not a corresponding GetShippingAddress function. Is only the "set" portion of the ShippingAddress property deprecated, or what is the correct way to retrieve the shipping address of an order?
Netriplex Corporation<br />
bvuser
#2 Posted : Tuesday, July 3, 2007 11:49:39 AM(UTC)
bvuser

Rank: Member

Joined: 4/10/2006(UTC)
Posts: 462

Any assistance from bv on this/someone in the know?
Netriplex Corporation<br />
Andy Miller
#3 Posted : Tuesday, July 3, 2007 1:21:17 PM(UTC)
Andy Miller

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 2,136

Was thanked: 1 time(s) in 1 post(s)
Only the setter has been deprecated. The getter is still the right way to retrieve the shipping address. Eventually they will likely make this property ReadOnly and remove the setter.

So this is good code:

Address a = order.ShippingAddress
a.City = "Portsmouth"
order.SetShippingAddress(a)
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
bvuser
#4 Posted : Tuesday, July 3, 2007 6:28:58 PM(UTC)
bvuser

Rank: Member

Joined: 4/10/2006(UTC)
Posts: 462

Wonderful news.
Netriplex Corporation<br />
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2025 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012