changeOwnerShipInfo
From AgileApps Support Wiki
Revision as of 00:34, 18 November 2014 by imported>Aeric
Change the owner of a record.
- Requirements
To perform this operation, you must either:
- Own the record,
- Be a System Administrator, or
- 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:
requestParams.add("owner_id", "new user id");
- Syntax
- <syntaxhighlight lang="java" enclose="div">
Result result; result = Functions.changeOwnerShipInfo(String objectName, String recordId,
String ownerId [, Boolean notifyEmail] );
</syntaxhighlight>
- Parameters
- objectName - The object name or identifier
- recordId - The record identifier
- ownerId - User ID of the new owner.
- notifyEmail- An optional parameter. Set to true to send the new owner an email notification.
- Returns
- Result object
- Throws
- Exception