This project has moved. For the latest updates, please go here.

Add-CrmBooleanAttribute

Synopsis

Add Boolean Attribute

Syntax

Add-CrmBooleanAttribute [-DefaultValue <Nullable`1[Boolean]>] [-TrueValue <PSOptionSetValue>] [-FalseValue <PSOptionSetValue>] [-Entity] <String> [-Name] <String> [-DisplayName] <String> [-Description <String>] [-CanModifyAdditionalSettings <Nullable`1[Boolean]>] [-IsAuditEnabled <Nullable`1[Boolean]>] [-IsCustomizable <Nullable`1[Boolean]>] [-IsRenameable <Nullable`1[Boolean]>] [-IsSecured <Nullable`1[Boolean]>] [-IsValidForAdvancedFind <Nullable`1[Boolean]>] [-Required <CrmRequiredLevel>] [-SchemaName <String>] [-IsGlobalFilterEnabled <Nullable`1[Boolean]>] [-IsSortableEnabled <Nullable`1[Boolean]>] [<CommonParameters>]

Description

Adds an attribute of type Boolean to an entity

Parameters

-DefaultValue <Nullable`1[Boolean]>

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-TrueValue <PSOptionSetValue>

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-FalseValue <PSOptionSetValue>

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Entity <String>

Required? True
Position? 1
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Name <String>

Required? True
Position? 2
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-DisplayName <String>

Required? True
Position? 3
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Description <String>

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-CanModifyAdditionalSettings <Nullable`1[Boolean]>

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-IsAuditEnabled <Nullable`1[Boolean]>

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-IsCustomizable <Nullable`1[Boolean]>

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-IsRenameable <Nullable`1[Boolean]>

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-IsSecured <Nullable`1[Boolean]>

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-IsValidForAdvancedFind <Nullable`1[Boolean]>

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Required <CrmRequiredLevel>

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-SchemaName <String>

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-IsGlobalFilterEnabled <Nullable`1[Boolean]>

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-IsSortableEnabled <Nullable`1[Boolean]>

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, InformationAction, InformationVariable,
WarningAction, WarningVariable, OutBuffer, PipelineVariable and OutVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

Inputs

Outputs

Microsoft.Xrm.Sdk.Metadata.BooleanAttributeMetadata

Notes

Available parameters depend on the version of the connected organization and the SDK used

Examples

Related links

BooleanAttributeMetadata Class https://msdn.microsoft.com/en-us/library/microsoft.xrm.sdk.metadata.booleanattributemetadata.aspx

Last edited Mar 11 at 7:02 PM by amsoftware, version 2