Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

Dual Write Filter Error

(1) ShareShare
ReportReport
Posted on by 2,755
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")))
  • Suggested answer
    lispyj Profile Picture
    lispyj 2,755 on at
    Dual Write Filter Error
    This is the winner!
     
    (((SalesType==SalesType::Sales)) && ((DocumentAttachmentTypeCode == "Note") || (DocumentAttachmentTypeCode == "URL")))
  • lispyj Profile Picture
    lispyj 2,755 on at
    Dual Write Filter Error
    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.

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans