Skip to main content
Newcomer
March 5, 2024
Solved

Rename documents using attributes

  • March 5, 2024
  • 4 replies
  • 484 views

Hello I am having some trouble with renaming my documents. I’ve uploaded some PDFs and associated their respective attributes to them using Smart Rules - Bulk Attribute Association and now I want to rename the same documents using their attributes. 

 

DocuSign support mentioned the xpath is incorrect, but I’m not able to find anything that can shed some light on this. I’ve also tried to apply the Example Use Case: XPath expression creates folder and moves document without success. 

Any help would be appreciated!

Thanks!

Best answer by Kelly.Gatling

Hello! Welcome to the DocuSign Community. 

To rename documents using their attributes, a simple, non-workflow related way to accomplish this is by using the Name Template on the attribute group. Here is an example attribute group with the Name Template field in. 


Name Template value = [[Customer Name]]_Contract_[[Department]]


By using [[ ]] around the attribute name + the combination of static characters, you can build your document name this way. 

Be careful! Any documents that have previously had this group applied will be renamed as well as any future documents that get this group applied. One way to control this is to use the name template, wait a few minutes for your document names to update, then remove the name template from the group. This will ensure that any future documents will not be renamed unexpectedly. 

 

Via workflow, this task is a bit more complicated (as you have seen!) But from your screenshot, it looks like you are on the right track. Here is a sample workflow I set up to rename all the documents in a folder based on a Customer Name attribute and Department attribute. 
 

 

I tried attaching a downloaded version of this file (.json) but the community won’t allow a .json to be uploaded. What I did was saved it as a .txt file and you can resave this as a .json file which you should be able to upload to see the details. 

I truly hope this helps! 

4 replies

Justin Jiang
Established Contributor
Established Contributor
April 17, 2024

maybe try using regex

Welcome to the DocuSign Community and University! Your feedback is immensely appreciated. If this answer resolves your issue, please feel free to give it a Like and mark it as the "Best Answer". This helps others in the community find the information they need. Visit us at http://dsucustomers.docusign.com for more resources and support.
Docusign Employee
April 19, 2024

Hello! Welcome to the DocuSign Community. 

To rename documents using their attributes, a simple, non-workflow related way to accomplish this is by using the Name Template on the attribute group. Here is an example attribute group with the Name Template field in. 


Name Template value = [[Customer Name]]_Contract_[[Department]]


By using [[ ]] around the attribute name + the combination of static characters, you can build your document name this way. 

Be careful! Any documents that have previously had this group applied will be renamed as well as any future documents that get this group applied. One way to control this is to use the name template, wait a few minutes for your document names to update, then remove the name template from the group. This will ensure that any future documents will not be renamed unexpectedly. 

 

Via workflow, this task is a bit more complicated (as you have seen!) But from your screenshot, it looks like you are on the right track. Here is a sample workflow I set up to rename all the documents in a folder based on a Customer Name attribute and Department attribute. 
 

 

I tried attaching a downloaded version of this file (.json) but the community won’t allow a .json to be uploaded. What I did was saved it as a .txt file and you can resave this as a .json file which you should be able to upload to see the details. 

I truly hope this helps! 

Kelly Gatling | Principal Product Trainer | Docusign University
Justin Jiang
Established Contributor
Established Contributor
April 25, 2024

Wow Kelly, you know everything!

Welcome to the DocuSign Community and University! Your feedback is immensely appreciated. If this answer resolves your issue, please feel free to give it a Like and mark it as the "Best Answer". This helps others in the community find the information they need. Visit us at http://dsucustomers.docusign.com for more resources and support.
Tomasz Szostek
Active Voice
Active Voice
October 10, 2024

Awasome! How do you know it as there is no documentation on that.

It’s magic…

Thnank you!

 

Tomasz Szostek