changeOwnerShipInfo

From AgileApps Support Wiki
Revision as of 01:15, 16 September 2011 by imported>Aeric

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", "some user id");

Syntax
<syntaxhighlight lang="java" enclose="div">

Result result = __apiName__(String objectId, String fields, String criteria); Result result = __apiName__(String objectId, String fields, String criteria

                           [, 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>

Parameters
objectId
The object identifier
fields
A comma-separated list of names of the fields to retrieve
criteria
A filter expression that specifies records to select.
params
Optional. A Parameters object that contains additional parameters.
  • ...other parameters...
Returns
Result object

--or--

An integer containing ...
A string containing ...
Throws
Exception
Example
This example ....
<syntaxhighlight lang="java" enclose="div">

... </syntaxhighlight>