3.1.4.6 BusinessRulesDelete

The BusinessRulesDelete operation deletes one or more business rules or deletes conditions or actions from business rules. This operation issues individual Delete transactions for each item. An error is reported for each item that is not found.

The failure or inability to delete one item does not affect the attempt to delete or the successful deletion of other items. Multiple granular calls for individual items can be implemented if alternative error handling is required.

With the input from BRDeleteCriteria, one of the following sets of GUIDs is specified:

  • The GUIDs of one or more business rules.

  • The GUIDs of the conditions, actions, or condition tree nodes (ANDs, ORs) of the business rules.

Delete transactions cascade to dependent objects. For example, when a business rule is deleted, all components that are attached to that business rule are deleted.

This operation returns a standard MessageResponse message.

The following is the WSDL definition of the BusinessRulesDelete operation.

Applies to MDS 2008R2

     <wsdl:operation name="BusinessRulesDelete">
       <wsdl:input wsaw:Action="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09/IService/BusinessRulesDelete" name="BusinessRulesDeleteRequest" message="tns:BusinessRulesDeleteRequest" />
       <wsdl:output wsaw:Action="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09/IService/BusinessRulesDeleteResponse" name="MessageResponse" message="tns:MessageResponse" />
    </wsdl:operation>

Applies to MDS 2012

     <wsdl:operation name="BusinessRulesDelete">
       <wsdl:input wsaw:Action="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09/IService/BusinessRulesDelete" name="BusinessRulesDeleteRequest" message="tns:BusinessRulesDeleteRequest"/>
       <wsdl:output wsaw:Action="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09/IService/BusinessRulesDeleteResponse" name="MessageResponse" message="tns:MessageResponse"/>
       <wsdl:fault wsaw:Action="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09/IService/BusinessRulesDeleteEditionExpiredMessageFault" name="EditionExpiredMessageFault" message="tns:IService_BusinessRulesDelete_EditionExpiredMessageFault_FaultMessage"/>
       <wsdl:fault wsaw:Action="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09/IService/BusinessRulesDeleteSkuNotSupportedMessageFault" name="SkuNotSupportedMessageFault" message="tns:IService_BusinessRulesDelete_SkuNotSupportedMessageFault_FaultMessage"/>
    </wsdl:operation>