< Back

New-CrmEntityReference

Sat Jan 18, 2020 4:03 pm

NAME New-CrmEntityReference



SYNOPSIS

Instantiates EntityReference type object.





SYNTAX

New-CrmEntityReference [-EntityLogicalName] <String> [-Id] <Guid> [<CommonParameters>]





DESCRIPTION

The New-CrmEntityReference cmdlet lets you instantiates EntityReference type object.





PARAMETERS

-EntityLogicalName <String>

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



Required? true

Position? 0

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Id <Guid>

An Id (guid) of the record



Required? true

Position? 1

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 --------------------------



New-CrmEntityReference -EntityLogicalName account -Id 1df8d93d-1f18-e511-80da-c4346bc43d94



This example instantiates CrmEntityReference object for an account record.







Id : 1df8d93d-1f18-e511-80da-c4346bc43d94

LogicalName : account

Name :

KeyAttributes : {}

RowVersion :

ExtensionData :



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



New-CrmEntityReference account 1df8d93d-1f18-e511-80da-c4346bc43d94



This example instantiates CrmEntityReference object for an account record by omitting parameter names.







Id : 1df8d93d-1f18-e511-80da-c4346bc43d94

LogicalName : account

Name :

KeyAttributes : {}

RowVersion :

ExtensionData :





RELATED LINKS