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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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