Skip to main content
Solved

Rename documents using attributes


Forum|alt.badge.img+1

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! 

View Original
Is this content helpful?

4 replies

Justin Jiang
Digital Collaborator
Forum|alt.badge.img+11
  • Digital Collaborator
  • 205 replies
  • April 17, 2024

maybe try using regex


Forum|alt.badge.img+6
  • Docusign Employee
  • 35 replies
  • Answer
  • 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! 


Justin Jiang
Digital Collaborator
Forum|alt.badge.img+11
  • Digital Collaborator
  • 205 replies
  • April 25, 2024

Wow Kelly, you know everything!


Tomasz Szostek
New Voice
Forum|alt.badge.img+3

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

It’s magic…

Thnank you!