web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Customizing Data Entity “SalesOrderLineV2 Entity”

(1) ShareShare
ReportReport
Posted on by 10

Details:

Hello Dynamics Community,

I have added a field “RetailVariantId” to the data entity “SalesOrderLineV2 Entity” and also included the same field in the staging table “SalesOrderLineV2Staging”. This setup works fine when I import data from an Excel file by filling in all these fields: RetailVariantId, ProductColorId, ProductSizeId, ProductStyleId, ProductConfigurationId, and ProductVersionId.

Current Requirement:

Now, I need to auto-populate the dependent fields (ProductColorId, ProductSizeId, ProductStyleId, ProductConfigurationId, and ProductVersionId) from RetailVariantId when I only provide RetailVariantId in the Excel file and import data through that file. Currently, it gives an error stating that all these fields are required.

Reference from Existing Functionality:

I was shown a reference of another data entity named “PurchPurchaseOrderLineV2Entity”. In this entity, the field “RetailProductVariantNumber” is included by default. When we import data into this entity through an Excel file without adding the dependent fields (ProductColorId, ProductSizeId, ProductStyleId, ProductConfigurationId, and ProductVersionId) and only provide the value for “RetailProductVariantNumber”, it successfully imports the data and auto-populates the dependent fields.

Has anyone faced a similar issue or can provide guidance on how to achieve this auto-population of dependent fields in “SalesOrderLineV2 Entity”?

Thank you in advance for your help!

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    305,643 Super User 2026 Season 1 on at
    Hi Haroon,

    Can you tell us on what exact moment you get the error about mandatory fields? Are you using the data management features to import data or are you using the Excel add-in to publish data? If you are using a data import project, are the records saved in the staging table?
     
    Did you add coding to fill the product dimension fields based on the new variant field?
  • Haroon Ghazanfar Profile Picture
    10 on at
    I’m using data management features to import data. When I upload the Excel file, it gives a warning about mapping. To resolve this, I mark the “inventLotId” as auto-generated in the mappings. However, when I try to import the data, it says that five fields must be added. I have not coded for this. Could you please guide me on where to write the code for this? 

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 668 Super User 2026 Season 1

#2
André Arnaud de Calavon Profile Picture

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

#3
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 581

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans