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
Open the document library and hover over the file you want to rename.Click the ellipses (...) to the right of the item name, and then click Rename.In the Rename dialog, type the new name into the field, and then click Save.
Regards,
Rachel Gomez
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.
Hello Rachel,
Thankyou for the response, but I was looking for a way to delete files using API or OOTB methods.
If we have a number of documents to update what we will do? Is there any function to update those documents with out manually?