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

Invoke-CrmRequest

Synopsis

Send any supported OrganizationRequest

Syntax

Invoke-CrmRequest [-Request] <String> [[-Parameters] <Hashtable>] [<CommonParameters>]

Description

Sends an organization request to the organization.

Parameters

-Request <String>

Name of the request

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

-Parameters <Hashtable>

Parameters needed for the request

Required? False
Position? 2
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.OrganizationResponse

Notes

Examples

WhoAmI

PS C:\> Invoke-CrmRequest -Request WhoAmI

Contains the data that is needed to retrieve the system user ID for the currently logged on user or the user under whose context the code is running.

Related links

OrganizationResponse Class https://msdn.microsoft.com/en-us/library/microsoft.xrm.sdk.organizationresponse.aspx
OrganizationRequest Class https://msdn.microsoft.com/en-us/library/microsoft.xrm.sdk.organizationrequest.aspx

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