Skip to main content
Nintex Community Menu Bar
Solved

Nintex Automation Cloud - Add attachment to an item on-prem

  • May 16, 2023
  • 2 replies
  • 316 views

Forum|alt.badge.img+3

Is it possible to have an anonymous form in Nintex Automation Cloud with an attachment field that when summitted, the workflow will create the item in SharePoint on-prem (SharePoint 2016), then attach the attachments from the form to the newly created item. 

Using Nintex Gateway I am able to create the item in the on-prem list, but I cannot figure how how to add the attachments from the form to the new item in on-prem.

 

Any help would be appreciated.

 

Thanks.

Best answer by Gavin-Adams

Hi @chad_johnson ,

my understanding is that the Nintex Gateway service does not support file variables for any of the supported connection (SQL on-prem, SharePoint On-premise, web serivces)

This is frustrating and a few of us have been pushing through Nintex ideas to get this added

Please consider adding your support to the following ideas:-

Add file support to SharePoint on-premises via Nintex | Nintex Ideas

File variable support in Nintex Gateway for SQL | Nintex Ideas

Add support for file shares to Nintex Gateway | Nintex Ideas

 

2 replies

Gavin-Adams
Forum|alt.badge.img+13
  • Communicator
  • Answer
  • May 16, 2023

Hi @chad_johnson ,

my understanding is that the Nintex Gateway service does not support file variables for any of the supported connection (SQL on-prem, SharePoint On-premise, web serivces)

This is frustrating and a few of us have been pushing through Nintex ideas to get this added

Please consider adding your support to the following ideas:-

Add file support to SharePoint on-premises via Nintex | Nintex Ideas

File variable support in Nintex Gateway for SQL | Nintex Ideas

Add support for file shares to Nintex Gateway | Nintex Ideas

 


Maisa
Forum|alt.badge.img+2
  • Novice
  • January 14, 2025

Yes there is a way in online , i don’t now if it will work in On-premise, 

  1. Create a long texte field on your SharePoint list (Html)
  2. Create a library in SharePoint where you will store your file 
  3. In Nintex automation cloud , use a for each action in your Nintex form to get your file collection , choose file as data type  ,
  4. In Nintex automation ,with the sharepoint  action Store a file, store your file in the library created in step 2, create a variable for the result Output (Ex : varMyFiles)
  5. In Nintex automation , with Create a text string action put this code in the string Components: 

 varMyFilesUrl
<a href="{"valuePath":"$['Url']","key":"c_varMyFiles"}" target="_blank">{"valuePath":"$['FileName']","key":"c_varMyFiles"}</a><hr>

Store your string components result in a variable name it varMyFilesUrl

  1. In Nintex automation cloud if you have used create an item in sharePoint list action , Go and search for your sharePoint field created in step 1 , and give the value as varMyFilesUrl

If you want to display the attachement in your validation form use a label action in the form and put your varMyFilesUrl inside 

I wish that can help u 

Happy New year To you