OrganizationServiceContextExtensions.ReassignObjectsOwner Method (OrganizationServiceContext, EntityReference, EntityReference)

 

Applies To: Dynamics CRM 2013

Reassigns all records that are owned by the security principal (user or team) to another security principal (user or team). (Developer Extensions)

Namespace:   Microsoft.Xrm.Client.Messages
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Syntax

public static void ReassignObjectsOwner(
    this OrganizationServiceContext context,
    EntityReference fromPrincipal,
    EntityReference toPrincipal
)
public:
[ExtensionAttribute]
static void ReassignObjectsOwner(
    OrganizationServiceContext^ context,
    EntityReference^ fromPrincipal,
    EntityReference^ toPrincipal
)
static member ReassignObjectsOwner : 
        context:OrganizationServiceContext *
        fromPrincipal:EntityReference *
        toPrincipal:EntityReference -> unit
<ExtensionAttribute>
Public Shared Sub ReassignObjectsOwner (
    context As OrganizationServiceContext,
    fromPrincipal As EntityReference,
    toPrincipal As EntityReference
)

Parameters

Remarks

This is a method wrapper for the ReassignObjectsOwnerRequest and ReassignObjectsOwnerResponse classes. See the documentation in the Request class for more information about this message.

See Also

OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client.Messages Namespace
Developer extensions for Microsoft Dynamics CRM 2013

Return to top