title: Getting image from Sharepoint post with Microsoft Graph
body: <p>My company has made a custom photo-field in Sharepoint for it's news. I'm trying to use Microsoft Graph to fetch the images, but with no success.</p>
  
  <p>This is the columns description:</p>
  
  <pre><code>{ 
          "columnGroup": "Page Layout Columns",
          "description": "",
          "displayName": "Thumbnail image",
          "enforceUniqueValues": false,
          "hidden": false,
          "id": "XXXXXXX-XXXX-XXXX-XXX-XXXXXXXXXXXX",
          "indexed": false,
          "name": "PublishingPageImage",
          "readOnly": false,
          "required": false
      },
  </code></pre>
  
  <p>In the documentation for <code>Microsoft Graph</code> it is written that you can make a request like this</p>
  
  <pre><code>GET https://graph.microsoft.com/beta/sites/{site-id}/lists/{list-id}/items?expand=fields(select=Column1,Column2)
  </code></pre>
  
  <p>Although - no matter how I seem to write the request, i can't get the image field.</p>
  
  <p>My most recent try has been this request:</p>
  
  <pre><code>https://graph.microsoft.com/beta/sites/knowit.sharepoint.com/lists/posts/items?expand=fields(select=PublishingPageImage)
  </code></pre>
  
  <p>The respons I got from Microsoft was this:</p>
  
  <pre><code>{
  "error": {
      "code": "-1, Microsoft.SharePoint.Client.ClientServiceException",
      "message": "Cannot serialize data for type Microsoft.SharePoint.Publishing.Fields.ImageFieldValue.",
      "innerError": {
          "request-id": "f25e4851-0c1b-4061-ad6a-948d38004046",
          "date": "2018-09-17T14:03:01"
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Should I use something like <code>.value</code>  or <code>.data</code> or <code>.ImageUrl</code> after the request? If i get a link or a data-value doesn't really matter. In the call for <code>/me/</code> for Microsoft users there is a <code>$value</code> property for getting the user profile photo. Is it something like this?</p>