Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
How to set paymentMethod on a SalesOrder?
I'm trying to set paymentMethod on SalesOrder records for orders that are prepaid. It appears that the paymentMethod is a read-only field, so SuiteTalk ignores that I'm trying to set it.
How do I get the paymentMethod value set?
Example code that I'm currently using C# (just a section of it).
SalesOrder so = new SalesOrder(); RecordRef paymentRef = new RecordRef(); paymentRef.type = RecordType.paymentMethod; paymentRef.typeSpecified = true; paymentRef.internalId = "11"; so.paymentMethod = paymentRef;
0