How to check if a value is present in a Property Local List?
Requirement: From an activity or Data Transform before set a value to a property need to check if that value is present in the Property's Local list else for not matching values validation error will occur.
Steps:
Here OpenClass = "Rule-Obj-Property"
.pyClassName = Class where property is defined.
.pyPropertyName = Property Name (without .)
2. When condition to check if the value present in the local list
@Utilities.IsInPropertyList(Param.ValueToCheck,.pyTableList)
3. If the when returns true then we can set that value to property.
Senior Pega Developer
3 年Many thanks for liking this ??