<?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: Query Dynamics CRM PartyList in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Query-Dynamics-CRM-PartyList/m-p/1808643#M54079</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="191765" data-lia-user-login="Gerald23" class="lia-mention lia-mention-user"&gt;Gerald23&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I doubt whether Power BI supports the&amp;nbsp;&lt;SPAN&gt;PartyList type from the&amp;nbsp;Dynamics CRM. I will try to find if there is any workaround to this.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards, &lt;BR /&gt;Community Support Team _ Jing&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Apr 2021 10:26:44 GMT</pubDate>
    <dc:creator>v-jingzhang</dc:creator>
    <dc:date>2021-04-27T10:26:44Z</dc:date>
    <item>
      <title>Query Dynamics CRM PartyList</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Query-Dynamics-CRM-PartyList/m-p/1802768#M53953</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone has experience with getting data from Dynamics CRM from PartyList type fields? I try to get phone call information into power bi but i can't get the data from the To and From field because these are PartyList fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the query i use and it works but it only returns Null values for these fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    GetResults = (z as text, x as number) =&amp;gt;
        let
            S = Json.Document(Web.Contents(ServiceRootURL, [RelativePath="/phonecalls", Headers=[Prefer="odata.include-annotations=*"],Query=[fetchXml="
			&amp;lt;fetch  distinct=""True"" page=""" &amp;amp; Text.From(x) &amp;amp; """ paging-cookie=""" &amp;amp; z &amp;amp; """&amp;gt;
				&amp;lt;entity name=""phonecall""&amp;gt;                                   &amp;lt;all-attributes /&amp;gt;
                    
                    
&amp;lt;link-entity name=""activityparty"" from=""activityid"" to=""activityid"" link-type=""inner"" alias=""ad""&amp;gt;&amp;lt;filter type=""and""&amp;gt;&amp;lt;condition attribute=""participationtypemask"" operator=""in""&amp;gt;&amp;lt;value&amp;gt;1&amp;lt;/value&amp;gt;&amp;lt;value&amp;gt;2&amp;lt;/value&amp;gt;&amp;lt;/condition&amp;gt;&amp;lt;/filter&amp;gt;&amp;lt;/link-entity&amp;gt;
				&amp;lt;/entity&amp;gt;
			&amp;lt;/fetch&amp;gt;"]])),
            P = try Xml.Document(S[#"@Microsoft.Dynamics.CRM.fetchxmlpagingcookie"]) otherwise null,
            R = if P &amp;lt;&amp;gt; null 
                then List.Combine({S[value],@GetResults(Text.Replace(Text.Replace(Text.Replace(Uri.Parts("http://a.b?d=" &amp;amp; Uri.Parts("http://a.b?d=" &amp;amp; P{0}[Attributes]{1}[Value])[Query][d])[Query][d], "&amp;gt;", "&amp;amp;gt;"), "&amp;lt;", "&amp;amp;lt;"), """", "&amp;amp;quot;"), x + 1)})
                else S[value]
        in
            R,
    ResultsList = GetResults("", 1),
    ResultsTable = if List.IsEmpty(ResultsList) 
                    then #table(
                                    type table[                                             #"Subject"= text,
                                            #"Activity Status (statecode)"= text,
                                            #"Activity Status"= text,
                                            #"Priority (prioritycode)"= text,
                                            #"Priority"= text,
                                            #"Due"= text,
                                            #"Created By (createdby)"= text,
                                            #"Created By"= text,
                                            #"Regarding (regardingobjectid)"= text,
                                            #"Regarding"= text,
                                            #"activityid"= text,
                                            #"Call To (to)"= text,
                                            #"Call To"= text,
                                            #"Call From (from)"= text,
                                            #"Call From"= text  ],{})
                    else #"Converted to Table",
	#"Converted to Table" = Table.FromList(ResultsList, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", 
                                        {
                                            "subject",
                                            "statecode",
                                            "statecode@OData.Community.Display.V1.FormattedValue",
                                            "prioritycode",
                                            "prioritycode@OData.Community.Display.V1.FormattedValue",
                                            "scheduledend@OData.Community.Display.V1.FormattedValue",
                                            "_createdby_value",
                                            "_createdby_value@OData.Community.Display.V1.FormattedValue",
                                            "_regardingobjectid_value",
                                            "_regardingobjectid_value@OData.Community.Display.V1.FormattedValue",
                                            "activityid",
                                            "_to_value",
                                            "_to_value@OData.Community.Display.V1.FormattedValue",
                                            "_from_value",
                                            "_from_value@OData.Community.Display.V1.FormattedValue"
                                        }, 

                                        {
                                            "subject",
                                            "statecode",
                                            "statecode@OData.Community.Display.V1.FormattedValue",
                                            "prioritycode",
                                            "prioritycode@OData.Community.Display.V1.FormattedValue",
                                            "scheduledend@OData.Community.Display.V1.FormattedValue",
                                            "_createdby_value",
                                            "_createdby_value@OData.Community.Display.V1.FormattedValue",
                                            "_regardingobjectid_value",
                                            "_regardingobjectid_value@OData.Community.Display.V1.FormattedValue",
                                            "activityid",
                                            "_to_value",
                                            "_to_value@OData.Community.Display.V1.FormattedValue",
                                            "_from_value",
                                            "_from_value@OData.Community.Display.V1.FormattedValue"
                                        }),
    #"Renamed Columns" = Table.RenameColumns(#"Expanded Column1",
                                        {
                                            {"subject", "Subject"},
                                            {"statecode", "Activity Status (statecode)"},
                                            {"statecode@OData.Community.Display.V1.FormattedValue", "Activity Status"},
                                            {"prioritycode", "Priority (prioritycode)"},
                                            {"prioritycode@OData.Community.Display.V1.FormattedValue", "Priority"},
                                            {"scheduledend@OData.Community.Display.V1.FormattedValue", "Due"},
                                            {"_createdby_value", "Created By (createdby)"},
                                            {"_createdby_value@OData.Community.Display.V1.FormattedValue", "Created By"},
                                            {"_regardingobjectid_value", "Regarding (regardingobjectid)"},
                                            {"_regardingobjectid_value@OData.Community.Display.V1.FormattedValue", "Regarding"},
                                            {"activityid", "activityid"},
                                            {"_to_value", "Call To (to)"},
                                            {"_to_value@OData.Community.Display.V1.FormattedValue", "Call To"},
                                            {"_from_value", "Call From (from)"},
                                            {"_from_value@OData.Community.Display.V1.FormattedValue", "Call From"}
                                        }),
    #"Changed Type" = Table.TransformColumnTypes(#"Renamed Columns",
{
                                            {"Subject", type text},
                                            {"Activity Status (statecode)", type text},
                                            {"Activity Status", type text},
                                            {"Priority (prioritycode)", type text},
                                            {"Priority", type text},
                                            {"Due", type datetime},
                                            {"Created By (createdby)", type text},
                                            {"Created By", type text},
                                            {"Regarding (regardingobjectid)", type text},
                                            {"Regarding", type text},
                                            {"activityid", type text},
                                            {"Call To (to)", type text},
                                            {"Call To", type text},
                                            {"Call From (from)", type text},
                                            {"Call From", type text}
})
,
#"Result" = if List.IsEmpty(ResultsList) 
                then ResultsTable
                    else #"Changed Type"
in
    #"Result"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 13:02:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Query-Dynamics-CRM-PartyList/m-p/1802768#M53953</guid>
      <dc:creator>Gerald23</dc:creator>
      <dc:date>2021-04-23T13:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Query Dynamics CRM PartyList</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Query-Dynamics-CRM-PartyList/m-p/1808643#M54079</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="191765" data-lia-user-login="Gerald23" class="lia-mention lia-mention-user"&gt;Gerald23&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I doubt whether Power BI supports the&amp;nbsp;&lt;SPAN&gt;PartyList type from the&amp;nbsp;Dynamics CRM. I will try to find if there is any workaround to this.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards, &lt;BR /&gt;Community Support Team _ Jing&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 10:26:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Query-Dynamics-CRM-PartyList/m-p/1808643#M54079</guid>
      <dc:creator>v-jingzhang</dc:creator>
      <dc:date>2021-04-27T10:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Query Dynamics CRM PartyList</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Query-Dynamics-CRM-PartyList/m-p/1813177#M54144</link>
      <description>&lt;P&gt;Ok i will also continue searching and in case i find something i will post it here for everyone that has the same problem in the future&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 07:13:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Query-Dynamics-CRM-PartyList/m-p/1813177#M54144</guid>
      <dc:creator>Gerald23</dc:creator>
      <dc:date>2021-04-29T07:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Query Dynamics CRM PartyList</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Query-Dynamics-CRM-PartyList/m-p/3448054#M112548</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you found the solution?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 14:59:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Query-Dynamics-CRM-PartyList/m-p/3448054#M112548</guid>
      <dc:creator>Ya_Katrin</dc:creator>
      <dc:date>2023-09-26T14:59:33Z</dc:date>
    </item>
  </channel>
</rss>

