Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

Request the metadata label

$
0
0

Hi all,

I have a doubt about soap - fetch queries but I don't know if it's possible to do it. I need to get the label of the fields of an entity. Actually I am using this soap request:

<request xmlns:d4p1="schemas.microsoft.com/.../Contracts" xmlns:i="www.w3.org/.../XMLSchema-instance">
					<d4p1:Parameters xmlns:d5p1="schemas.datacontract.org/.../System.Collections.Generic">
						<d4p1:KeyValuePairOfstringanyType>
							<d5p1:key>EntityFilters</d5p1:key>
							<d5p1:value xmlns:d7p1="schemas.microsoft.com/.../Metadata" i:type="d7p1:EntityFilters">Relationships</d5p1:value>
						</d4p1:KeyValuePairOfstringanyType>
						<d4p1:KeyValuePairOfstringanyType>
							<d5p1:key>RetrieveAsIfPublished</d5p1:key>
							<d5p1:value xmlns:d7p1="www.w3.org/.../XMLSchema" i:type="d7p1:boolean">true</d5p1:value>
						</d4p1:KeyValuePairOfstringanyType>
						<d4p1:KeyValuePairOfstringanyType>
							<d5p1:key>LogicalName</d5p1:key>
							<d5p1:value xmlns:d7p1="www.w3.org/.../XMLSchema" i:type="d7p1:string">' . $entity . '</d5p1:value>
						</d4p1:KeyValuePairOfstringanyType>
						<d4p1:KeyValuePairOfstringanyType>
							<d5p1:key>MetadataId</d5p1:key>
							<d5p1:value xmlns:d7p1="schemas.microsoft.com/.../Serialization" i:type="d7p1:guid">00000000-0000-0000-0000-000000000000</d5p1:value>
						</d4p1:KeyValuePairOfstringanyType>
					</d4p1:Parameters>
					<d4p1:RequestId i:nil="true" />
					<d4p1:RequestName>RetrieveEntity</d4p1:RequestName>
				</request>


And I get a response like this: 

<d:OneToManyRelationshipMetadata><d:MetadataId>a552997d-6179-11e0-834f-1cc1de634cfe</d:MetadataId><d:HasChanged i:nil="true"/><d:IsCustomRelationship>false</d:IsCustomRelationship><d:IsCustomizable><b:CanBeChanged>false</b:CanBeChanged><b:ManagedPropertyLogicalName>iscustomizable</b:ManagedPropertyLogicalName><b:Value>false</b:Value></d:IsCustomizable><d:IsManaged>true</d:IsManaged><d:IsValidForAdvancedFind>false</d:IsValidForAdvancedFind><d:SchemaName>contact_PostRoles</d:SchemaName><d:SecurityTypes>None</d:SecurityTypes><d:IntroducedVersion i:nil="true"/><d:RelationshipType>OneToManyRelationship</d:RelationshipType><d:AssociatedMenuConfiguration><d:Behavior>DoNotDisplay</d:Behavior><d:Group>Details</d:Group><d:Label><b:LocalizedLabels/><b:UserLocalizedLabel i:nil="true"/></d:Label><d:Order>0</d:Order></d:AssociatedMenuConfiguration><d:CascadeConfiguration><d:Assign>NoCascade</d:Assign><d:Delete>Cascade</d:Delete><d:Merge>NoCascade</d:Merge><d:Reparent>NoCascade</d:Reparent><d:Share>NoCascade</d:Share><d:Unshare>NoCascade</d:Unshare></d:CascadeConfiguration><d:IsHierarchical>false</d:IsHierarchical><d:ReferencedAttribute>contactid</d:ReferencedAttribute><d:ReferencedEntity>contact</d:ReferencedEntity><d:ReferencingAttribute>regardingobjectid</d:ReferencingAttribute><d:ReferencingEntity>postrole</d:ReferencingEntity></d:OneToManyRelationshipMetadata>


Anybody had this problem or know how to get the 'Label'? (I need the label because I want to show the fields in my mother language ( spanish ) )

Thank's so much.


Viewing all articles
Browse latest Browse all 55831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>