The Problem:
When creating a new customer in Dynamics 365 Finance and Operations, the Inserted event on the CustTable table is triggered. This event calls code that retrieves customer data (phone number, email address, fax number, address) and sends it to an external CRM system.
Current Behavior:
-
In the case of creating a new customer, the additional data (phone, email, fax, address) arrives empty in the CRM system.
-
In the case of updating an existing customer, all data arrives correct and complete in the CRM system.
I tried it : I attempted to resolve the issue by adding a delay (using the sleep() function) before executing the data retrieval code, but this approach did not work, and the contact data (phone, email, fax, address) still arrived empty when creating a new customer.
The Question:
Why do contact data (phone, email, fax) and address data arrive empty when creating a new customer, but arrive correctly when updating an existing customer, even though the same data retrieval code is used in both cases?

Report
All responses (
Answers (