Difference between revisions of "ChangeOwnerShipInfo"

From LongJump Support Wiki
imported>Aeric
imported>Aeric
Line 18: Line 18:


;Parameters:
;Parameters:
:;objectId:The object identifier
:'''objectId -''' The object identifier
:;recordId:The record identifier
:'''recordId -''' The record identifier
:;ownerId:User ID of the new owner.
:'''ownerId -''' User ID of the new owner.
:;params: Optional. A [[Parameters Class|Parameters]] object that contains additional parameters.
:'''params -''' An optional [[Parameters Class|Parameters]] object that contains additional parameters:
:::*'''notifyEmail -''' A Boolean. Set to true to send the new user an email notification.
:::*'''notifyEmail -''' A Boolean. Set to true to send the new user an email notification.



Revision as of 01:30, 16 September 2011

Change the owner of a record.

Requirements

To perform this operation, you must either:

Notepad.png

Note: When adding a record with the addRecord method, it is only necessary to specify the owner in the requestParams:
  requestParams.add("owner_id", "new user id");

Syntax
Result result;
result = Functions.changeOwnerShipInfo(String objectId, String recordId,
                                       String ownerId [, Parameters params] );
Parameters
objectId - The object identifier
recordId - The record identifier
ownerId - User ID of the new owner.
params - An optional Parameters object that contains additional parameters:
  • notifyEmail - A Boolean. Set to true to send the new user an email notification.
Returns
Result object

--or--

An integer containing ...
A string containing ...
Throws
Exception