Skip to main content
Nintex Community Menu Bar
Solved

Autopopulate SharePoint columns when saving a document

  • February 26, 2024
  • 5 replies
  • 158 views

Forum|alt.badge.img+5

I am building a simple workflow to save a web form to a SharePoint site. The workflow runs as follows:


Start Event: Form > Get a file > Generate document > Get item from collection > Store a file > Workflow complete. 


The SharePoint document library was created with columns to match the form variables in the workflow.  When the file is stored, is there a way to auto-populate the SharePoint columns with the data entered in the web form?

Best answer by Jake

Hi @AdrianGaribdass01 

 

there are 2 approaches, you can link properties in a document to columns on a list, then using docgen fill the property with the tags you want and it will replicate as you store the file. 
 

the problem with this approach is it requires a bunch of admin and I think there is a specific naming convention required for sharepoint to replicate the field but it is the only “automatic” approach. 
 

alternatively once the item is created, use update item action with the ID of the created file and fill the values as you need them, the fields still populate just requires another action. 
 

Jake 

5 replies

Jake
Forum|alt.badge.img+13
  • Scholar
  • Answer
  • February 26, 2024

Hi @AdrianGaribdass01 

 

there are 2 approaches, you can link properties in a document to columns on a list, then using docgen fill the property with the tags you want and it will replicate as you store the file. 
 

the problem with this approach is it requires a bunch of admin and I think there is a specific naming convention required for sharepoint to replicate the field but it is the only “automatic” approach. 
 

alternatively once the item is created, use update item action with the ID of the created file and fill the values as you need them, the fields still populate just requires another action. 
 

Jake 


Forum|alt.badge.img+5

Jake,

Thanks for the response.  Do you have a few images of how these options would look like in a workflow?


Jake
Forum|alt.badge.img+13
  • Scholar
  • February 27, 2024

Hi @AdrianGaribdass01 

It would just be a single additional action for your current workflow, just an update item action at the end. 

 

 

When you use the store file action in the loop output its ID to a variable:

 

 

You can then use that file ID in the same loop to update the item properties:

 

In this scenario I am storing case number and region to the item, see below:

 

Hope this helps

 

Jake


Forum|alt.badge.img+5

Thank you. 


MillaZ
Nintex Employee
Forum|alt.badge.img+22
  • Nintex Employee
  • March 11, 2024

Hi @AdrianGaribdass01 

If these responses helped solve your question, please remember to mark the best answer!