Problem:
I am creating a customer programmatically using X++ in Dynamics 365 Finance and Operations. I insert the address into LogisticsPostalAddress and the phone into LogisticsElectronicAddress. I also link the location to the Party using DirParty::addLocation() with the correct roles (Delivery, Business, Invoice).
What happens:
-
The customer is created successfully
-
The address and phone records are inserted successfully in the database
-
When I check the tables directly, all data exists and is correctly linked
-
But when I open the customer in the UI, the Addresses tab is empty and the Contact information tab is empty
What should happen:
After inserting address and phone data via X++, the customer should display the address under the Addresses tab and the phone under the Contact information tab, just like when adding manually through the UI.
Note:
-
Manual entry through the UI works fine
-
The problem only happens with programmatic insertion
Question:
Is there a missing step in my code? Do I need to refresh something or update the cache after inserting? Any help would be appreciated.


Report
All responses (
Answers (