Argomento precedente: CreateContractFromContractTemplate

Argomento successivo: DuplicateContract

CreateContractFromServiceDefinition

Description

This method creates a contract from a collection of metrics associated with a specific service definition.

Syntax

long CreateContractFromServiceDefinition (ContractData contractData, long[] MetricIDs);

Parameters

Name

Type

Description

contractData

ContractData

The data to use for creating the contract.

MetricIDs

long[]

An array of IDs of the selected service definition metrics.

Return Value

The ID of the new contract, as type long.

Remarks

The method validates the data sent to it and may throw a validation exception upon failure.

The ContractData object provided for this method should be filled with an ID for every sub-entity of which it consists (for example, the contract’s corresponding primary contract party).