When applying a template to an order via an Integration, when I ApplyChanges() to the order I get the message "The order has unresolved errors. Any outstanding errors must be resolved"
When I run the same example in SoftPro UI I see these errors - see attachment -
How do I force a save ignoring errors in the API
OR
How do I set these values in the Template?
You can't. It is a feature that orders with errors cannot be saved.
How do I set these values in the Template?
You need to open the Template file and make the changes that are required? Templates do not have the same error checking mechanisms as orders because they may hold incomplete information. An error free template does not guarantee an error free order.
OK - I can do that .. with your help How do I open a template?
Are templates custom to our configuration? I am looking for a way to set the values and any support is helpful. Is there some sample code that I can review.
Treat a template just like an order in your code or in the Select client GUI.
In C#, you would use the same code that is used to open the order. For instance if the template's name is "TemplateXYZ", you can search the order store for the matching number. This is the same way you look for orders.
I saw your response to a similar question and it referred the user to a document - specifically it said this ..
"Best Practices for accessing IOrderItem properties. Didn't know if you would be interested: How to Read from IOrderItem Properties and How to Write to IOrderItem Properties."
Sounds like that document would be helpful to me also. However, the links don't work. Can you send me to the correct link?
It is not a document, per se. They are two posts about using the IOrderItem interface on order model properties. These are how you get/set the property values.