Oracle Web Services On Demand Guide > Web Services On Demand API Calls > Administrative Services API Calls >

WorkflowRuleSetInsertOrUpdate


Updates existing workflow rule configuration data or inserts new data. The Manage Workflow Rules privilege is required (to create workflow rules for the User record type, the Manage Workflow Rules for User privilege is also required). Additionally, the Workflow Cancel Save privilege is required if the Cancel Save setting is to be updated or inserted.

NOTE:  It is recommended that you use the WorkflowRuleSetInsertOrUpdate method rather than the WorkflowRuleSetUpsert method.

Usage

Use the WorkflowRuleSetInsertOrUpdate method to update or insert workflow rule configuration data.

New workflow rules are inserted and existing workflows rules are updated. Workflow rules that are not identified in the request are not affected. This is in contrast with the WorkflowRuleSetUpsert method, which deletes workflow rules not identified in the request.

Child elements of apData:WorkflowRuleSet provide user keys to identify workflow rule records in a request in the following order:

  1. <RecordType> and <TriggerEvent> and <Order>
  2. <WorkflowName>

The same order is followed for all the workflow child containers. If no workflow rule is located using these criteria, a new workflow is inserted with the configuration specified in the request.

See WorkflowRuleSetUpsert for information about the workflow rule data specified in apData:WorkflowRuleSet.

For more information about workflow rules, see Oracle CRM On Demand Online Help.

Arguments

Table 184 describes the arguments taken by the WorkflowRuleSetInsertOrUpdate method.

Table 184. Arguments Taken by the WorkflowRuleSetInsertOrUpdate Method
Name
Description
Required
Default
I/O

apData:WorkflowRuleSet

The workflow rule data to be updated or inserted.

Yes

Not applicable

Input

Status

The status of the call.

Not applicable

Not applicable

Output

Return Value of the Call

The status is returned.

Oracle Web Services On Demand Guide, Version 25.0 (Oracle CRM On Demand Release 37) Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices.