Difference between revisions of "ChangeOwnerShipInfo"

From AgileApps Support Wiki
imported>Aeric
imported>Aeric
Line 8: Line 8:
:* Have [[Change Ownership of my Team’s Records]] permission and be working on a record that is owned by someone on your [[Team]].  
:* Have [[Change Ownership of my Team’s Records]] permission and be working on a record that is owned by someone on your [[Team]].  


{{Note|When adding a record with the [[addRecord]] method, it is only necessary to specify the owner in the requestParams: <tt>requestParams.add("owner_id", "some user id");</tt>}}  
{{Note|When adding a record with the [[addRecord]] method, it is only necessary to specify the owner in the requestParams: <tt>requestParams.add("owner_id", "new user id");</tt>}}  


;Syntax:
;Syntax:
:<syntaxhighlight lang="java" enclose="div">
:<syntaxhighlight lang="java" enclose="div">
Result result = __apiName__(String objectId, String fields, String criteria);  
Result result = Functions.changeOwnerShipInfo(String objectId, String recordId, String ownerId);  
Result result = __apiName__(String objectId, String fields, String criteria
Result result = Functions.__apiName__(String objectId, String recordId, String ownerId
                             [, Parameters params] );
                             [, Parameters params] );
Result result = __apiName__(String objectId, String fields, String criteria);
 
Result result = __apiName__(String objectId, String fields, String criteria,
                            String sortBy, String sortOrder,
                            String sortBy2, String sortOrder2,
                            int offset, int numberOfRows);
</syntaxhighlight>
</syntaxhighlight>


;Parameters:
;Parameters:
:;objectId:The object identifier
:;objectId:The object identifier
:;fields:A comma-separated list of names of the fields to retrieve
:;recordId:The record identifier
:;criteria:A [[JAVA API:Filter Expressions in JAVA APIs|filter expression]] that specifies records to select.
:;ownerId:User ID of the new owner.
:;params: Optional. A [[Parameters Class|Parameters]] object that contains additional parameters.
:;params: Optional. A [[Parameters Class|Parameters]] object that contains additional parameters.
::*...other parameters...
::*''' -notifyEmail -''' A Boolean. Set to true to send the new user an email notification.


;Returns:
;Returns:
Line 37: Line 33:
;Throws:
;Throws:
:Exception
:Exception
 
<!--
;Example:This example ....
;Example:This example ....
:<syntaxhighlight lang="java" enclose="div">
:<syntaxhighlight lang="java" enclose="div">
...
...
</syntaxhighlight>
</syntaxhighlight>
<noinclude>
--><noinclude>


[[Category:Java API | changeOwnerShipInfo]]
[[Category:Java API | changeOwnerShipInfo]]
</noinclude>
</noinclude>

Revision as of 01:24, 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 = Functions.changeOwnerShipInfo(String objectId,  String recordId, String ownerId); 
Result result = Functions.__apiName__(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
Optional. A 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