cancel
Showing results for 
Search instead for 
Did you mean: 

How to write file with a specific name?

amit_saroha
New Contributor III

Hi,

I am writing a zip file and I have a document id that I want to use as the zip file name. Could you suggest how to achieve it?

image

1 ACCEPTED SOLUTION

On the left side there is a botton( = ) check that and replace file name with this one "Temp_Files/" + $DocumentId + ".zip"

View solution in original post

4 REPLIES 4

viktor_n
Contributor II

Hi @amit.saroha,

One approach is to put the snap that writes the file into another pipeline and use it as a child of the current one.
Inside child, you will create a parameter and you will use this parametes as name of the file.

With Pipeline Execute you will call that child pipeline.

Regards,
Viktor

viktor_n
Contributor II

Scenario above is for if you write a file. If you read you can simply toggle button for the Expression Builder and select the $DocumentID

amit_saroha
New Contributor III

Thanks, @viktor_n - I tried but it didn’t give the desired result. I guess something is missing. Please see the below screenshot.

image

On the left side there is a botton( = ) check that and replace file name with this one "Temp_Files/" + $DocumentId + ".zip"