Vorheriges Thema: UpdateResourcesCustomAttribute

Nächstes Thema: UpdateResourceByMap

UpdateResourcesEffective

Description

This method updates the effective field in the given resources in a given date.

The optional EffectiveDate parameter maintains backward compatibility with existing scripts.

Note: Setting the effective date overrides the default behavior, which is to take the effective date from the change set.

Syntax

UpdateResourcesEffective (Resources, ChangeSetName, IsEffective,EffectiveDate)

Parameters

Name

Type

Description

Resources

string/map

Name of a resource or resource group, or map of resources and/or resource groups. The map cannot be empty.

ChangeSetName

string

The name of the change set.

IsEffective

Boolean

True or False.

EffectiveDate
[optional, defaultvalue=""]

string

The date from which CA CA Business Service Insight may use the resource. The resource effective date (in the script's time zone) is defined by the resource version that includes the resource. The date can contain hours, minutes and seconds.

Remarks

This method fails if either of the following is true: