yuuvis® RAD Q&A

0 votes
by (590 points)

Hello OS-Team,

we want to create folders for policy files.
The name of these files is automatically generated.
Unfortunatly the users will upload files where the name is not correct.

So the question is, ss it possible to change the name of a file?

First step would be to change it while creating the object.
So maybe via form scripting in the creation form.
I found the API function scope.api.util.encodeFileName
but the description and a example is missing, so i'm not sure if this is the correct function.

Second step would be to change the name if someone is replacing
the file via drag and drop.
I'm not sure if this is possible via form-scripting.

Thanks for the answer in advance.

1 Answer

0 votes
by (14.8k points)

Beginning with version 5.2 it is possible to change the basis attribute filename via REST call:

/rest-ws/#ENDPOINT:DmsService.updateItemContentName After a document file has been replaced the basis attribute filename is set to the filename of the new file. Beginning with version 5.2 as well, a replacement of the document file will lead to replace extracted data, which where mapped during object creation, with the data of the new file as well.
...