Hello All,
I need to rename a file in SharePoint, but having a problem in identifying the correct metadata type tag to make the filename change
Output from the integration rule
The type used in the below screen is not correct, but I was trying few option with the type.
Please advice which is the right type or correct way to rename the file.
Thanks
Girish Katti
Discussion posts and replies are publicly visible
Method: POST Uri: _api/web/lists/GetbyTitle('<Document Library Name'>)/items(<item-ID>)/validateUpdateListItem Body: { "formValues": [ { "FieldName": "FileLeafRef", "FieldValue": "<new-folder-name>" } ] }
Hello Aditya,
Thank you very much for the responce.
In the URI
_api/web/lists/GetbyTitle('<Document Library Name'>)/items(<item-ID>)/validateUpdateListItem
what is the value is /items(<item-ID>). Can you share any sample example.
Thanks & Regards
It is service available to update the document name. And please take care of proper user access to update the file details
When I pass the complete path for '<Document Library Name'>, I get a Relative Path error.
Can you share a example how to update the filename.
The OOTB does not allow to delete file with special character. What is the ideal way to delete a file from SharePoint having special characters in the name i.e. %ST.414%.pdf.