< Back

Get-CrmEntityAttributeMetadata

Sat Jan 18, 2020 3:59 pm

NAME Get-CrmEntityAttributeMetadata



SYNOPSIS

Retrieves an attribute metadata for an Entity.





SYNTAX

Get-CrmEntityAttributeMetadata [-conn <CrmServiceClient>] [-EntityLogicalName] <String> [-FieldLogicalName]

<String> [<CommonParameters>]





DESCRIPTION

The Get-CrmEntityAttributeMetadata cmdlet lets you retrieve an attribute metadata for an Entity.





PARAMETERS

-conn <CrmServiceClient>

A connection to your CRM organization. Use $conn = Get-CrmConnection <Parameters> to generate it.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-EntityLogicalName <String>

A logicalname for Entity. i.e.)account, contact, lead, etc..



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-FieldLogicalName <String>

A logicalname for a field.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS









OUTPUTS









NOTES









-------------------------- Example 1 --------------------------



Get-CrmEntityAttributeMetadata -conn $conn -EntityLogicalName account -FieldLogicalName parentaccountid



This example retrieves Parent Account attribute metadata for Account Entity.







Targets : {account}

AttributeOf :

AttributeType : Lookup

AttributeTypeName : Microsoft.Xrm.Sdk.Metadata.AttributeTypeDisplayName

ColumnNumber : 57

Description : Microsoft.Xrm.Sdk.Label

DisplayName : Microsoft.Xrm.Sdk.Label

DeprecatedVersion :

IntroducedVersion : 5.0.0.0

EntityLogicalName : account

...



-------------------------- Example 2 --------------------------



Get-CrmEntityAttributeMetadata account parentaccountid



This example retrieves Parent Account attribute metadata for Account Entity by omitting parameter names.

When omitting parameter names, you do not provide $conn, cmdlets automatically finds it.







AttributeOf : preferredcontactmethodcode

AttributeType : Virtual

AttributeTypeName : Microsoft.Xrm.Sdk.Metadata.AttributeTypeDisplayName

ColumnNumber : 149

Description : Microsoft.Xrm.Sdk.Label

DisplayName : Microsoft.Xrm.Sdk.Label

DeprecatedVersion :

IntroducedVersion : 5.0.0.0

EntityLogicalName : account

IsAuditEnabled : Microsoft.Xrm.Sdk.BooleanManagedProperty

IsCustomAttribute : False

...





RELATED LINKS