Rename Attachment during Upload in an Record Producer

alexanderwallne
Tera Contributor

Hello, 

 

i need a Solution, i have to collect some Attachments via a ServicePortal Form  (7 Attachments).

 

how can i Rename the Attachamnts during the Upload for Example:   test.pdf to  Vorname_Nachname_ Ausweis.pdf

 

alexanderwallne_1-1664893666586.png

 

 

alexanderwallne_0-1664893409969.png

regards

 

6 REPLIES 6

Mike_R
Kilo Patron
Kilo Patron

Before Insert business rule. See below. Just modify condition and script

 

Mike266_0-1664894892692.png

 

Mike266_2-1664894947120.png

 

 

 

Hello,

Thanks for your help,  it works.

 

how can i use other variables from the form to generate the File Name?

 

Vorname_Nachname_Upload_Ausweis.pdf

 

alexanderwallne_0-1664968231858.png

 

 

 

 

alexanderwallne_1-1664961671283.png

 

 

 

 

Mike_R
Kilo Patron
Kilo Patron

no doesn not work, i Think the problem is the BR runs on the Table sys_Attachment and there are the variables not available, so i have to link to the Record Producer to get the variable. But i cant find a soltion, how does that work?  a second BR or ?