Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
MagnusSthlm
Helper I
Helper I

Error retreiving statecode and state in CRM v9

Hi!

 

I used the following code in Power BI to retreive state code and status code in CRM v8:

 

= Json.Document(Web.Contents("https:/xxxxx.api.crm4.dynamics.com/api/data/v8.2/" & "stringmaps?fetchXml=<fetch version=""1.0"" output-format=""xml-platform"" mapping=""logical"" distinct=""false""><entity name=""stringmap""><attribute name=""stringmapid"" /><attribute name=""value"" /><attribute name=""attributename"" /><attribute name=""attributevalue"" /><filter type=""and""><condition attribute=""objecttypecode"" operator=""eq"" value=""4"" /><condition attribute=""attributename"" operator=""eq"" value=""statecode"" /><condition attribute=""langid"" operator=""eq"" value=""" & langid & """ /></filter></entity></fetch>"))

 

This is not working in v9. I've tried to change the version to 8.2 instead of 9. I get load the tables but this isn't working. Any help?

 

Regards,

Magnus

1 REPLY 1
v-xjiin-msft
Solution Sage
Solution Sage

Hi @MagnusSthlm,

 

In your scenario, you want to parse Json file in Power BI. Right?

 

If so, you can refer to following relevant thread:

https://community.powerbi.com/t5/Desktop/Parsing-JSON-data-into-PowerBI-table/td-p/55946

 

Thanks,
Xi Jin.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.