<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Sharepoint REST Query including a Person Reference in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sharepoint-REST-Query-including-a-Person-Reference/m-p/765318#M272031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems the complication is in the format of the responses.&amp;nbsp; Looks like [content/properties] is used to navigate the returned values in QlikView to find each data element.&amp;nbsp; However, when an $expand= statement is used, the resulting structure for the expanded data must be different.&amp;nbsp; I suppose the key question I'm asking here is how to access the Title of the AssignedTo data attribute - clearly [content/properties/AssignedTo/Title] is not mapping to the structure.&amp;nbsp; I've picked apart the data response from sharepoint and a typical result would look like the image below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I find interesting about this structure is that there are two "sections" that contain data.&amp;nbsp; The first section is in a path: &lt;/P&gt;&lt;P&gt;&amp;lt;entry&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;link&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;m:inline&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;entry&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;content&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the path that contains my Auditor's name (the "nested" or "relational" value to my list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The primary data on the list is in a path which seems to be reflected in the accessor in the QlikView file:&amp;nbsp; [content/properties]:&lt;/P&gt;&lt;P&gt;&amp;lt;entry&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;content&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="80257" alt="3-9-2015 10-59-40 AM.png" class="image-1 jive-image" src="/legacyfs/online/80257_3-9-2015 10-59-40 AM.png" style="height: 582px; width: 620px;" /&gt;contet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Mar 2015 15:03:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-09T15:03:23Z</dc:date>
    <item>
      <title>Sharepoint REST Query including a Person Reference</title>
      <link>https://community.qlik.com/t5/QlikView/Sharepoint-REST-Query-including-a-Person-Reference/m-p/765317#M272030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I posted this as a sub-questions to this discussion: &lt;A _jive_internal="true" href="https://community.qlik.com/message/511818#511818" title="http://community.qlik.com/message/511818#511818"&gt;http://community.qlik.com/message/511818#511818&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I thought it might be valuable as a stand-alone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am using the REST service successfully but have run in to a bit of a snag.&amp;nbsp; I can get all the data from the primary list without issue.&amp;nbsp; But when I try to select a data type "nested" data, that data is not returned.&amp;nbsp; I do not get an error, but the field is simply blank.&amp;nbsp; Below is a sample dealing specifically with a field called AssignedTo which is a person reference field.&amp;nbsp; The bolded field (AssignedTo/Title) is coming back blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CorrectiveActions:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [content/properties/ID] as [%%Key_CorrectiveActionId],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [content/properties/Solution] as Solution,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [content/properties/Problem] as Problem,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [content/properties/Resolved] as Resolved,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [content/properties/LPA_QuestionId] as [%%Key_LPA_QuestionId],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;[content/properties/AssignedTo/Title] as [CorrectiveActionAssignee]&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;FROM [&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/[mysharepointlocation]/_api/web/lists/getbytitle('Corrective Actions')/items?$top=10000&amp;amp;$select=Id,Solution,LPA_QuestionId,Problem,Resolved,AssignedTo/Title&amp;amp;$expand=AssignedTo" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;http://[MYSHAREPOINTLOCATION]/_api/web/lists/getbytitle('Corrective%20Actions')/items?$top=10000&amp;amp;$select=Id,Solution,LPA_QuestionId,Problem,Resolved,AssignedTo/Title&amp;amp;$expand=AssignedTo&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;] (XmlSimple, Table is [feed/entry]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This query returns everything I want (Solution, Problem, Resolved, etc.) But the&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;CorrectiveActionAssignee&lt;/STRONG&gt; field is coming back blank.&amp;nbsp; If I take the http query and paste it into my browser, all the data is coming back as expected including the person reference with Title (name).&amp;nbsp; Do you have any idea why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I've tried [content/properties/AssignedTo/properties/Title] and that doesn't work either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 13:21:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sharepoint-REST-Query-including-a-Person-Reference/m-p/765317#M272030</guid>
      <dc:creator />
      <dc:date>2015-03-09T13:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sharepoint REST Query including a Person Reference</title>
      <link>https://community.qlik.com/t5/QlikView/Sharepoint-REST-Query-including-a-Person-Reference/m-p/765318#M272031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems the complication is in the format of the responses.&amp;nbsp; Looks like [content/properties] is used to navigate the returned values in QlikView to find each data element.&amp;nbsp; However, when an $expand= statement is used, the resulting structure for the expanded data must be different.&amp;nbsp; I suppose the key question I'm asking here is how to access the Title of the AssignedTo data attribute - clearly [content/properties/AssignedTo/Title] is not mapping to the structure.&amp;nbsp; I've picked apart the data response from sharepoint and a typical result would look like the image below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I find interesting about this structure is that there are two "sections" that contain data.&amp;nbsp; The first section is in a path: &lt;/P&gt;&lt;P&gt;&amp;lt;entry&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;link&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;m:inline&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;entry&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;content&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the path that contains my Auditor's name (the "nested" or "relational" value to my list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The primary data on the list is in a path which seems to be reflected in the accessor in the QlikView file:&amp;nbsp; [content/properties]:&lt;/P&gt;&lt;P&gt;&amp;lt;entry&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;content&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="80257" alt="3-9-2015 10-59-40 AM.png" class="image-1 jive-image" src="/legacyfs/online/80257_3-9-2015 10-59-40 AM.png" style="height: 582px; width: 620px;" /&gt;contet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 15:03:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sharepoint-REST-Query-including-a-Person-Reference/m-p/765318#M272031</guid>
      <dc:creator />
      <dc:date>2015-03-09T15:03:23Z</dc:date>
    </item>
  </channel>
</rss>

