I added the SalesType field to the SalesOrderHeaderAttachmentEntity and am now trying to filter the Notes map to sync sales orders only. (We receive and error when we try to add a note to a Return Order in Finance. Which makes sense as returns are in a seperate table in CRM.
I have tried both filters below and they successfully filter return orders, but they also prevent sales order notes from syncing. What is my error?
((SalesType == SalesType::Sales) &&((DocumentAttachmentTypeCode == "Note") || (DocumentAttachmentTypeCode == "URL")))
((SalesType == "Sales") &&((DocumentAttachmentTypeCode == "Note") || (DocumentAttachmentTypeCode == "URL")))