Hi AX Experts,
I'm working on adding a new field SkipCreateAutoCharge in the existing data entity PurchPurchaseOrderLineEntity. The requirement is in the entity we need logic for controlling the behavior.
1. If the field SkipCreateAutoCharge is NOT specified,
- In DMF: Default is Auto charges should NOT be applied - The skipCreateMarkup field on purchline should be Yes
- In OData:/Excel: Default is Auto charges should be applied - The skipCreateMarkup field on purchline should be NoIf the field SkipCreateAutoCharges is specified
2. In both DMF and OData: No default - The SkipCreateMarkup field on purchline should be set to the value of the SkipCreateAutoCharges field on the entity
Setting the SkipCreateMarkup field on purchline record is done in the mapEntityToDataSource method on the entity and this is where the logic above should be applied.
I'm thinking that to add a field mapping to PurchLine,SkipCreateMarkup and add related logic in mapEntityToDataSource. But I don'w know where can debug into this method. Which scenario?
I set breakpoints in PurchPurchaseOrderLineEntity all methods, and attach w3p or batch service, when click export/import button to trigger the operation, but no any response. So can you show more details about which scenario can go into this method?
Hi Sukrut, I created a PO line export job for PurchPurchaseOrderLineEntity. But When debugging the export job progress, it didn't go into this method. So does it mean mapEntityToDataSource method is only processing the import logic (from data entity to purchline table)? And for mapDataSourceToEntity method, it's used to export data?? Please help confirm this.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156