I am creating a custom connector named "GetAttachments" to get the SharePoint list items metadata (Mainly created by and created), by passing the item serverrelativeurl,as follow:-
- This is the custom connector action named Info
- this is the Test Operation page:-
the final url will be something as follow:-
https://******.sharepoint.com/_api/web/getfilebyserverrelativeurl('/Lists/testattacments/Attachments/101/SW Software description.pdf')?$expand=Author&$select=Author/LoginName,Author/Email,Author/Id
but the above test inside the custom connector will return this error:-
{
"odata.error": {
"code": "-1, Microsoft.SharePoint.Client.InvalidClientQueryException",
"message": {
"lang": "en-US",
"value": "Cannot deserialize data for type Microsoft.SharePoint.SPResourcePath."
}
}
}
now if i directly call the api url from the browser i will get the related response correctly as follow:-
also when i try to call the custom connector from Power Apps canvas app, i will get this error "resource not found":-
although the file exists and i can make the call using the browser.. any advice?

Report
All responses (
Answers (