Im trying to retrieve some information from a Sharepoint list that contains our Company news. I have looked through our columns that exists and realized that the image is located at a column named PublishingRollupImage
.
My call to microsoft looks like this:
https://graph.microsoft.com/v1.0/sites/{tenant id}/lists/posts/items?$expand=fields($select=Title,body,DepartmentCompany,PublishingRollupImage)
BUT - if i make this call, the response will be:
{
"error": {
"code": "-1, Microsoft.SharePoint.Client.ClientServiceException",
"message": "Cannot serialize data for type Microsoft.SharePoint.Publishing.Fields.ImageFieldValue.",
"innerError": {
"request-id": "f885269e-da21-45a0-b3e4-e304f4e01edb",
"date": "2018-12-10T12:12:25"
}
}
}
This is of corse due to that i'm getting the whole image sent by adding this. But i read that i could use .ImageUrl
to cast it to a link instead, but i'm not sure if this could be done in a call like this.
Has anyone any pointers to give?