Skip to main content
Participant
October 6, 2024
Answered

In the dynamic stamp, output the directory of the document to be stamped

  • October 6, 2024
  • 2 replies
  • 524 views

To display the file name I use:
event.value = event.source.source.documentFileName;
I couldn't find anything to display the directory.
Is there a way?

This topic has been closed for replies.
Correct answer leo45

Just the name of the folder in which the document is located would be perfect.
Thanks for the super-fast reply

2 replies

try67
Community Expert
Community Expert
October 6, 2024

The full directory path, or just the name of the folder where it's located?

leo45AuthorCorrect answer
Participant
October 7, 2024

Just the name of the folder in which the document is located would be perfect.
Thanks for the super-fast reply

try67
Community Expert
Community Expert
October 7, 2024

Use this:

 

var pathParts = event.source.source.path.split("/");
event.value = pathParts[pathParts.length-2];

PDF Automation Station
Community Expert
Community Expert
October 6, 2024

event.value=event.source.source.path;