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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Create Entity fields f...
Power Apps
Answered

Create Entity fields from Excel spreadsheet

(0) ShareShare
ReportReport
Posted on by 7,044 Most Valuable Professional

Hi Guys, 

 

         We have an Excel application which is really huge and have many tabs with at least 55 columns on each tabs. As a first step I have taken one of the spreadsheet tab which have 60+columns and some sample data. 

 

In CDS > I have created the entity. 

 

To Achieve: 

 

1. Is there anyway I can use my spreadsheet to create fields in an entity ? (Note: Not mapping fields and loading sample data) 

2. I have checked XRMToolbox but not sure which is the appropriate tool to use to create fields

 

Kindly advise is this possible. 

 

 

I have the same question (0)
  • EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Hi @ragavanrajan,

    You can easily achieve that with Dataflows which has the option to generate your entity and map each column to a field. You can also schedule your dataflow or run on-demand to import the data. Here are the high level steps to create your dataflow:

    1. In make.powerapps.com, expand Data and select Dataflows
    2. Click "New Dataflow" in the top command bar, pick a name and click Create
    3. Select Excel as the data source
      2020-09-01_17-52-06.png
    4. Easiest is to copy your Excel file to your OneDrive for business and browse to it. 
    5. Pick your spreadsheet and you can even edit your query with Power Query to like filter out records if need be.
    6. Next screen, you can map the fields/columns to an existing entity or create a new one
      map-to-standard-entity.png
    7. Click OK and pick a refresh frequency or run manually and you're done!

    Hope this helps!

  • v-xida-msft Profile Picture
    on at

    Hi @ragavanrajan ,

    Regarding the needs that you mentioned, I think Power Query in CDS and XRMTool box both could achieve your needs.

     

    # 1, using Power Query in CDS. Please check and see if the following article would help in your scenario:

    https://docs.microsoft.com/en-us/powerapps/maker/common-data-service/data-platform-cds-newentity-pq

     

    # 2, using XRMTool Box to import data. Firstly, you need to install "Data Import ++" component in your XRMTool Box. 

    10.JPG

    Then open the Data Import ++ plugin, then you could browse Excel file from your local device, then import it to your existing CDS Entity:

    11.JPG

     

    The XRMToolBox would be easy and faster than Power Query functionality in CDS. The XRMToolBox also has some limits in importing data into CDS Entity:

    Spoiler (Highlight to read)

    - Lookup fields: You can only map String or Guid field types from within the related entity.

    - OptionSet fields: If different optionset fields are present in your excel file, all of them should be of the same data type: Optionset VALUES or Optionset LABELS.

    - Create CRM Action: You cannot force a guid even if mapping a guid excel column to the record's guid field. The CRM will generate a new Guid for the record.
    - If you want to use XRMTool box to import data, you must create the Entity in your CDS firstly.

    - Lookup fields: You can only map String or Guid field types from within the related entity. - OptionSet fields: If different optionset fields are present in your excel file, all of them should be of the same data type: Optionset VALUES or Optionset LABELS. - Create CRM Action: You cannot force a guid even if mapping a guid excel column to the record's guid field. The CRM will generate a new Guid for the record.- If you want to use XRMTool box to import data, you must create the Entity in your CDS firstly.

    Please check the following blog for more details:

    https://www.d365tips.com/post/xrmtoolbox-dataimport

     

    # 3, Using the "Get data"-> "Get data from Excel" option to import data into existing CDS Entity. Please check the following article for more details:

    https://docs.microsoft.com/en-us/powerapps/maker/common-data-service/data-platform-import-export

     

    Regards,

  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Thank you @EricRegnier  and @v-xida-msft . Sorry for my wordings. I have rephrased my question now. I need to "Create fields" based on Excel file. Thanks again for your support. Please advise 

  • Verified answer
    EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    With Dataflows, you can generate the entities and its fields as per my previous post. You can delete the entity if you already created it and it will get re-generated with the fields.

    Another method if you do not want to delete the entity is with the Attribute Factory tool in XrmToolBox which is helpful to bulk create your fields (attributes) for an entity: https://www.xrmtoolbox.com/plugins/Javista.AttributesFactory/ So you create the entity which no fields and then use this tool to bulk create the fields/attributes. Hope this helps...

  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Awesome @EricRegnier  thank you for your quick response. Much appreciated. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard