BV Commerce Forum
»
BV Commerce Support
»
General Support
»
Non-Deprecated Way of Retrieving Shipping Address?
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 /> |
|
|
|
Rank: Member
Joined: 4/10/2006(UTC) Posts: 462
|
Any assistance from bv on this/someone in the know? |
Netriplex Corporation<br /> |
|
|
|
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) |
|
|
|
|
Rank: Member
Joined: 4/10/2006(UTC) Posts: 462
|
|
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.