Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Unanswered

MultiSelect Picklist Attribute Metadata not returned when using OAuth authentication in Dynamics CRM (Online version).

Posted on by 5

When using OAuth authentication in Dynamics CRM Online MultiSelectPicklistAttributeMetadata EntityType is not returned . The request being sent is like below:

	
		
			
				
					
						EntityFilters
						Attributes Relationships
					
					
						MetadataId
						00000000-0000-0000-0000-000000000000
					
					
						RetrieveAsIfPublished
						false
					
					
						LogicalName
						contact
					
				
				
				RetrieveEntity
			
		
	

 

However, when I use Basic authentication, I can get these fields. I noticed that with this form of authentication I get as part of the metadata the attribute type for these fields and its data related. I have included the request and the response below.

 

Request:

	
		
    http://schemas.microsoft.com/xrm/2011/Contracts/Services/IOrganizationService/Execute
		9.0.9002.0
		
    urn:uuid:xxxxx
		
			
      http://xxxx
		
		
    https://xxx.crm.dynamics.com/XRMServices/2011/Organization.svc
		
			...
			
			
				
				
					
						
							
						
						
							
								xxxxx
							
						
						
							xxxxxxxxx
						
					
				
				
					xxxxxxxxx
				
			
		
	
	
		
			
				
					
						EntityFilters
						Attributes Relationships
					
					
						MetadataId
						00000000-0000-0000-0000-000000000000
					
					
						RetrieveAsIfPublished
						false
					
					
						LogicalName
						contact
					
				
				
				RetrieveEntity
			
		
	

Response:

	...

 

 

Is there any type of configuration that needs to be made in my custom app to get these fields when using OAuth authentication? Or any kind of configuration from the UI of my account?

 

Thanks for the help.

Categories:
  • Mohsin Ali Profile Picture
    Mohsin Ali 3,610 on at
    RE: MultiSelect Picklist Attribute Metadata not returned when using OAuth authentication in Dynamics CRM (Online version).

    Multiselect attributes don't return through any authentication.

  • Nina691 Profile Picture
    Nina691 5 on at
    RE: MultiSelect Picklist Attribute Metadata not returned when using OAuth authentication in Dynamics CRM (Online version).

    Yes, I am using SOAP now. They are returned when using this URL: api/data/v9.0/EntityDefinitions(LogicalName='contact')/Attributes/Microsoft.Dynamics.CRM.MultiSelectPicklistAttributeMetadata?$select=LogicalName&$expand=OptionSet.

    But, I was wondering if there is any other way as I have a requirement to use SOAP.

  • Guido Preite Profile Picture
    Guido Preite 54,057 Super User on at
    RE: MultiSelect Picklist Attribute Metadata not returned when using OAuth authentication in Dynamics CRM (Online version).

    why you are using SOAP? did you check the results if you use the OData 4.0 endpoint? (EntityDefinitions)

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,995 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,610 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans