i am trying to upload file to a sharepoint subsite document library and struggling in getting the site id / drive id of subsite and document library.
I already follow this article(https://www.sharepointdiary.com/2018/04/sharepoint-online-powershell-to-get-site-collection-web-id.html#:~:text=Here%20is%20how%20to%20find,%3E%2F_api%2Fweb%2Fid) and it is giving me web id but when i am doing the Get call to (https://graph.microsoft.com/v1.0/sites/webid)it is giving below error
{
“error”: {
“code”: “itemNotFound”,
“message”: “Item not found”,
“innerError”: {
“date”: “2024-05-22T13:43:03”,
“request-id”: “1771c172-052d-4d54-9087-66c891ebb869”,
“client-request-id”: “1771c172-052d-4d54-9087-66c891ebb869”
}
}
}
Ashish Vats is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.