itelligent-i
Advocate IV
11 years agoStatus:
Needs Votes
CRM Online Dynamic Options sets PickListMappingSet
The CRM Online OData feed doesn't dynamically provide access to user defined Option Sets. When adding an Option Set to CRM it should be provided in the PickListMappingSet table
laurent_chinde1
6 years agoNew Member
Hi everyone, You can get the Option Sets value list by using the following Dynamics 365 API endpoint: https:// .crm.dynamics.com/api/data/v8.2/GlobalOptionSetDefinitions(). The trick here is instead of using a normal OData call you put the API call inside a Json.Document(Web.Contents()), then convert the result in a table and keep the Options. Here a sample M Query: let Source = Json.Document(Web.Contents("https:// .crm.dynamics.com/api/data/v8.2/GlobalOptionSetDefinitions()")), #"Converted to Table" = Record.ToTable(Source), Value = #"Converted to Table"{2}[Value], #"Converted to Table1" = Table.FromList(Value, Splitter.SplitByNothing () , null, null, ExtraValues.Error), #"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table1", "Column1", {"Value", "Label", "Description", "Color", "IsManaged", "MetadataId", "HasChanged"}, {"Value", "Label", "Description", "Color", "IsManaged", "MetadataId", "HasChanged"}), #"Expanded Label" = Table.ExpandRecordColumn(#"Expanded Column1", "Label", {"LocalizedLabels", "UserLocalizedLabel"}, {"Label.LocalizedLabels", "Label.UserLocalizedLabel"}), #"Expanded Label.UserLocalizedLabel" = Table.ExpandRecordColumn(#"Expanded Label", "Label.UserLocalizedLabel", {"Label", "LanguageCode", "IsManaged", "MetadataId", "HasChanged"}, {"Label.UserLocalizedLabel.Label", "Label.UserLocalizedLabel.LanguageCode", "Label.UserLocalizedLabel.IsManaged", "Label.UserLocalizedLabel.MetadataId", "Label.UserLocalizedLabel.HasChanged"}), #"Removed Other Columns" = Table.SelectColumns(#"Expanded Label.UserLocalizedLabel",{"Value", "Label.UserLocalizedLabel.Label"}) in #"Removed Other Columns" This can be optimized, but it's just for your reference. Best regards
Recent ideas
Allow dynamic headers for Calculation Groups
calculation Groups reduce duplicated DAX, but their Calculation Item names become static Matrix headers such as Current, MTD, QTD, and YTD. These headers do not tell report consumers which measure i...danieleloFabric1 hour agoNew MemberNew6Views1like0CommentsCentralized retention policies for imported data in Power BI semantic models
Summary Please provide a tenant-level retention policy that allows administrators to centrally enforce automatic deletion of expired data from Power BI Import semantic models, independently of data ...JINHOYOO2 hours agoMicrosoft EmployeeNew59Views19likes1CommentResizable Personalize visual pane or wrapped field names
Problem: The Personalize Visual pane width is fixed and long measure/column names are cropped making it difficult for users to identify which item to add to their visual. Idea: Allo...Simon_AUS8 hours agoRegular VisitorNew41Views8likes0CommentsRestore PNG Attachments or Enable Full-Size Viewing of Power BI Subscription Images
The recent migration of Power BI email subscriptions to the new platform removed the PNG image attachment that subscribers have relied upon for years. Although the report snapshot is still embedded ...Marsha_Brooks9 hours agoNew MemberNew8Views0likes0Comments