web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Dual Write Filter Error

(1) ShareShare
ReportReport
Posted on by 201
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")))
  • lispyj Profile Picture
    201 on at
    Can someone tell me if && is the correct entry for AND in this syntax?
     
    Also
    What is the correct way to filter for enum?  I tried the field = enum value as Text "Sales"  and I also tried the field = enumType::Value without "".  Is one of these correct?
     
    I am pretty sure that the name of the field SalesType is correct because my value is not evaluating as I need it to. The filter I need is records having sales type of Sales and Note type of either Note or URL.
     
    Thanks for any help you can give.
  • Suggested answer
    lispyj Profile Picture
    201 on at
    This is the winner!
     
    (((SalesType==SalesType::Sales)) && ((DocumentAttachmentTypeCode == "Note") || (DocumentAttachmentTypeCode == "URL")))

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 284 Super User 2026 Season 2

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 213

#3
Subra Profile Picture

Subra 200 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans