< Back

Get-CrmRecordsCount

Sat Jan 18, 2020 4:01 pm

NAME Get-CrmRecordsCount



SYNOPSIS

Retrieves CRM entity total record counts.





SYNTAX

Get-CrmRecordsCount [-conn <CrmServiceClient>] [-EntityLogicalName] <String> [<CommonParameters>]





DESCRIPTION

The Get-CrmRecordsCount cmdlet lets you retrieve CRM entity total record counts.





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 an Entity to retrieve. i.e.)account, contact, lead, etc..



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



Get-CrmRecordsCount -conn $conn -EntityLogicalName account



This example retrieves total number of Account entity records.







5677



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



Get-CrmRecordsCount account



This example retrieves total number of Account entity records by omitting parameter names.

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







5677





RELATED LINKS