AgileApps Support Wiki Pre Release

updateGlobalPicklist

From AgileApps Support Wiki
Revision as of 20:15, 23 December 2010 by imported>Aeric
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Update the attributes of a Global Picklist or its enumerated items. (This API replaces the existing definition with a new one.)

Syntax
  String updateGlobalPicklist(GlobalPicklistBean bean, String id) throws Exception
Parameters
Returns
A string containing the id of the global picklist
Throws
Exception
Example
This example ....
try {
  String id = "rty345uty678";
  GlobalPicklistBean bean = Functions.getGlobalPicklist(id);
  bean.setSortFlag(false);
    //...make other changes...
  Functions.updateGlobalPicklist(bean, id);
}
catch (Exception e) {
  ...
}
Note: The API returns the ID as a string, but that value is typically ignored, since it had to be known in order to do an update in the first place.