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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

How to map virtual field of Data entity?

(0) ShareShare
ReportReport
Posted on by

Hi,

I have to import an excel file using data entity. It has only 1  column.

let's  say it as 'A',  in it which actually does not exists as a field on the target table. In fact, this column contains data for 3 separate fields of the target table. That means I have to split the data of this column and update 3 fields of the target table. How to achieve this? The data is not separated with any specific character. It's a data of a particular character length using which I am going to split them.

Looking at this MS Documentation, I created a data entity which has datasource of the target table. I created a virtual field in the data entity  for this column 'A'.

Computed columns and virtual fields in data entities - Finance & Operations | Dynamics 365 | Microsoft Learn

My Problem:

I created Import project and added the entity. Now, when i go to mapping the fields, i can see column 'A" in 'Staging field' but there is nothing to map it in the 'Source field' column. So how and where to map column 'A'.?

If I don't map column A, How does my entity know that which column from Excel is being used as a Virtual Field of the entity? How will I get the data of this column A in the mapEntityToDataSource method as shown in the MS article above?

I have the same question (1)
  • Verified answer
    Martin Dráb Profile Picture
    237,948 Most Valuable Professional on at

    You can't get mapping for three fields if you're importing it as a single field. You would have to deal with it completely in code.

    Your remark about data not separated by a particular character suggests that you believe that this is the only scenario supported by F&O. But that's not true - F&O can import data based on wixed fidth of columns too.

    Consider this approach:

    Save the Excel spreadsheet as a text file. Having it in Excel doesn't give you any value anyway.

    Create (or re-use) a source format with File format = Wixed width. Then create an import project with this source type, press Entity attributes button (above the grid with entities) and configure the columns. Then you can do the source mapping between these attributes and staging fields.

  • VRD Profile Picture
    on at

    Thanks Martin. I created import project with fixed with format. but I didn't knew about this Entity Attributes. That has helped me to fix my problem. 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 559 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 464 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans