IService.BusinessRulesCreate(BusinessRulesCreateRequest) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create new business rules.
public:
Microsoft::MasterDataServices::Services::MessageContracts::BusinessRulesCreateResponse ^ BusinessRulesCreate(Microsoft::MasterDataServices::Services::MessageContracts::BusinessRulesCreateRequest ^ request);
[System.ServiceModel.FaultContract(typeof(Microsoft.MasterDataServices.Services.DataContracts.EditionExpiredMessage))]
[System.ServiceModel.FaultContract(typeof(Microsoft.MasterDataServices.Services.DataContracts.SkuNotSupportedMessage))]
[System.ServiceModel.OperationContract]
public Microsoft.MasterDataServices.Services.MessageContracts.BusinessRulesCreateResponse BusinessRulesCreate (Microsoft.MasterDataServices.Services.MessageContracts.BusinessRulesCreateRequest request);
[<System.ServiceModel.FaultContract(typeof(Microsoft.MasterDataServices.Services.DataContracts.EditionExpiredMessage))>]
[<System.ServiceModel.FaultContract(typeof(Microsoft.MasterDataServices.Services.DataContracts.SkuNotSupportedMessage))>]
[<System.ServiceModel.OperationContract>]
abstract member BusinessRulesCreate : Microsoft.MasterDataServices.Services.MessageContracts.BusinessRulesCreateRequest -> Microsoft.MasterDataServices.Services.MessageContracts.BusinessRulesCreateResponse
Public Function BusinessRulesCreate (request As BusinessRulesCreateRequest) As BusinessRulesCreateResponse
Parameters
- request
- BusinessRulesCreateRequest
Returns
- Attributes
Remarks
The BusinessRulesCreate(BusinessRulesCreateRequest) operation creates new business rules and business rule components within the MDS repository. Each new business rule or component is created with the names that are provided, and a new GUID is generated for each item. Any components in the request that already exist in the model, matched by name and parent context (EntityId and MemberType), result in errors.
The BusinessRules data type in the request includes placeholders for all information about a business rule, including its descriptive and state information and its component conditions and actions.
GUIDs may be included in a request (for example, the business rule definition was sourced from another MDM hub instance). However, the GUIDs are ignored. For more information about the preservation of GUIDs, see BusinessRulesClone(BusinessRulesCloneRequest).
Newly created objects and their GUIDs are returned in the response as a BusinessRules type if ReturnCreatedIdentifiers is set to true in the request.
Specified domain-based attribute values in arguments of conditions or actions are validated against all open versions. Attribute values that are not found result in errors.