Forum Discussion

francisl's avatar
6 years ago

New line break in purchase order

Using endpoint /Purchase/Order/Item and I'm unhappy with the ShipToAddress

 

It all runs on one line, is it possible to get it multiline?

 

i.e. instead of this

 

Clearwater Pty. Ltd. 25 Spring Street Blackburn VIC 3130

 

have it looking like this 

 

Clearwater Pty. Ltd.
25 Spring Street
Blackburn VIC 3130

 

https://developers.myob.com/api/accountright/v2/purchase/order/order_item/

  • You should find that the ShipToAddress string has line breaks  (\r\n) in it.

    This is from the Clearwater sample file and supplier Mountain Spring:

     

    "Mountain Spring\r\n28 Clearvalley Way\r\nLeura NSW 2780\r\nAustralia"

     

    If you write it to a memo or similar, it should format as required.