Skip to main content
Nintex Community Menu Bar
Solved

Content of an Excel file in a choice single drop down list

  • March 27, 2025
  • 5 replies
  • 43 views
  • Translate

poirisop
Forum|alt.badge.img+3

I would like to use an Excel file containing a list of products in a data lookup control to select the part.

I know how to do it from an Microsoft List.

To avoid having to manually convert my Excel file into a Microsoft list, can I do it directly from an Excel file that is in my SharePoint online?

or

Can I automate the upload of the content of the Excel file into a microsoft list or into a table?

 

Best answer by SimonMuntz

Hi ​@poirisop,

Sorry to hear you are having issues with this solution.
Let me try to help.

In my example I am attaching an Excel file to my start event form.
My Excel:
 



The first action gets the file from the Start form upload control collection and puts it into a File variable.
 

Read the Excel file and put the contents into a collection variable.
 

Loop Through the collection and Query the JSON.

 

Do the same for Model.
I have logged the text, but you can do what you need to with the data.


Example: Mazda CX5

Workflow Example.

 

View original
Did this topic help you find an answer to your question?

5 replies

SimonMuntz
Nintex Employee
Forum|alt.badge.img+22
  • Nintex Employee
  • 2473 replies
  • March 27, 2025

Hi ​@poirisop,

I can’t see a direct way to create a data source from an Excel sheet in Nintex Workflow.

Solutions:

  1. You could create a scheduled workflow that retrieves your Excel sheet and then creates/updates a table in Nintex Workflow. You could run it as often as needed.
    Using the linked Xtension from the Gallery, you can use the Read Excel file action to read the contents of the Excel file. https://gallery.nintex.com/t/toolkit-for-nwc. Then, create a data source with the Table to use in the form choice control.
  2. Use Google Sheets instead of Excel and create a data source directly to the sheet.
Translate

MillaZ
Nintex Employee
Forum|alt.badge.img+21
  • Nintex Employee
  • 678 replies
  • March 31, 2025

Hi ​@poirisop 

Did Simon's suggestions help you find the answer?

Translate

poirisop
Forum|alt.badge.img+3
  • Author
  • Rookie
  • 13 replies
  • March 31, 2025

Not exactly.

I cannot use Google Sheets. So I decide to try solution #1 with Toolkit-for-nwc.

I am able to read my Excel file and put the result into a text variable. The variable contains the entire content of my Excel file. I thought I would be able to loop through the Excel file and work with one record at a time, OR have the result in a collection variable so I could use collection controls. I really don’t know what to do next with that variable ☹️ 

 

Translate

SimonMuntz
Nintex Employee
Forum|alt.badge.img+22
  • Nintex Employee
  • 2473 replies
  • Answer
  • March 31, 2025

Hi ​@poirisop,

Sorry to hear you are having issues with this solution.
Let me try to help.

In my example I am attaching an Excel file to my start event form.
My Excel:
 



The first action gets the file from the Start form upload control collection and puts it into a File variable.
 

Read the Excel file and put the contents into a collection variable.
 

Loop Through the collection and Query the JSON.

 

Do the same for Model.
I have logged the text, but you can do what you need to with the data.


Example: Mazda CX5

Workflow Example.

 

Translate

poirisop
Forum|alt.badge.img+3
  • Author
  • Rookie
  • 13 replies
  • April 1, 2025

Thanks ​@SimonMuntz 

The difference that I have, it is that my Excel file is in my SharePoint Online site. So, my start event is SharePoint - New or update list item. After that, I have a Get a file action. Result to a file type variable (var_file). 

 

In the Read Excel action, I changed the Result variable from a type file to a type collection.



​​​​

It is working now!

Thank you very much

 

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings