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, ...
Unanswered

dual-write custom creation filtering of standard entity

(0) ShareShare
ReportReport
Posted on by 1,114

Hello,

I have a standard dual-write entity "cds sales order headers". Underlying entity in AOT is SalesOrderHeaderCDSEntity

I need only those newly created  SalesOrders in FO to be created in CE that have SalesOrderOriginCode equal to those values pointed out in the parameters of "Accounts receivable" module.

Simple dual-write filtering described here

docs.microsoft.com/.../customizing-mappings

isn't sutable for me as I see it. My scenario is more difficult.  So I believe I should do that via code in some method of dataentity. Or I'm wrong and complex filtering can be done in dual-write UI?

If via code s what's the best dataentity method for that? InsertEntityDataSource()? 

Thanks.

I have the same question (0)
  • huijij Profile Picture
    19,811 on at

    Hi Azat,

    Would you specify what are your business requirements?

  • dark_knight Profile Picture
    1,114 on at

    Hi,

    I have dual-write set up. SalesOrders are synchronized by means of the stdnard dual-write data entity below:

    pastedimage1651255036460v1.png

    there is a standard mapping for salesorigincode field

    pastedimage1651255137936v2.png

    I need only those SalesOrders to be synchronized from FO to CE that particular value of salesorigincode(SalesTable.SalesOriginID). Those particular values are pointed out in CustParameters. Therefore I need to fetch them by code like SalesParameters salesParameters = SalesParameters::find();

    I can't use this standard filter of dual write (fix if I'm wrong) as far as I get it because it works only for simple constant values. I can't write there any X++ code indeed

    pastedimage1651255353465v3.png

    therefore I think I should create a computed column returning boolean value depending on the value of salesorigincode and then use this value in the filter of dual write here

    pastedimage1651255353465v3.png

    Is it a correct approach?

    Thanks

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 527 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 473

#3
Adis Profile Picture

Adis 284 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans