Skip to main content
Nintex Community Menu Bar
Solved

Rename the uploaded file from the starting form to one of the variables and save it to SharePoint

  • April 2, 2024
  • 7 replies
  • 333 views

Forum|alt.badge.img+1

Hi all, can you please help me sort out my issue, I have been looking everywhere and I can't find a solution.
At the start event form, I set the file upload, this file will always have a different name (depending on the user) I wonder if there is a way to rename it to one of the variables and save it on the SharePoint folder.

Best answer by Chris_Ben

Hi, yes this is possible.  You have to first save the file to SharePoint and then after it has been saved, you can rename it to the name you specified in the start form.  Here’s the workflow outline to do this - NB the get item from collection is used to retrieve the first file from the upload control because the control can accept multiple files.

 

 

7 replies

Deon
Forum|alt.badge.img+10
  • Rookie
  • April 2, 2024

Hello @fbartosz , you mention “Start Event Form” which sounds like you are referring to Nintex Automation Cloud.

This was posted under “Nintex Automation”, which is now the new name for K2 Five.

 

Can you please confirm if this question is related to K2 Five, now knows as “Nintex Automation” or Nintex Automation Cloud, the product previously known as “Nintex Workflow Cloud” ?


Forum|alt.badge.img+1
  • Author
  • Rookie
  • April 3, 2024

Sorry you are correct I rereferred to Nintex Automation Cloud.  I will delete that question and raise it one more Time in correct group. Thank you for your answer :)


Forum|alt.badge.img+1
  • Author
  • Rookie
  • April 5, 2024

​@Deon  can you please close this thread, I can't ask that question under NAC if this one still exists. 


MillaZ
Nintex Employee
Forum|alt.badge.img+22
  • Nintex Employee
  • April 10, 2024

Hi @fbartosz 

I have moved this question to the NAC forum so there’s no need to re-post it. 


Forum|alt.badge.img+1
  • Author
  • Rookie
  • April 10, 2024

Thank you for your reply, unfortunately, people will be able to upload the file with various names so I am not sure how I will be able to target it after I save it on share point folder.


Chris_Ben
Nintex Employee
Forum|alt.badge.img+14
  • Nintex Employee
  • Answer
  • April 10, 2024

Hi, yes this is possible.  You have to first save the file to SharePoint and then after it has been saved, you can rename it to the name you specified in the start form.  Here’s the workflow outline to do this - NB the get item from collection is used to retrieve the first file from the upload control because the control can accept multiple files.

 

 


Forum|alt.badge.img+4
  • Rookie
  • April 14, 2025

Hi, yes this is possible.  You have to first save the file to SharePoint and then after it has been saved, you can rename it to the name you specified in the start form.  Here’s the workflow outline to do this - NB the get item from collection is used to retrieve the first file from the upload control because the control can accept multiple files.

 

 

Hi Ben,

I am trying to do something similar and have created logic for a date-time stamp logic for the file, and I am able to rename the file. After renaming, it places the date-time stamp after the extension and creates something like as attached. I created a regular expression to take the extension out and then add it again, but is this the only possible way, or am I missing something? Can you please help.