‎21-06-2022 09:58 PM
Hi,
How can I test if an Org process name is like "FS - " ?
The code I use in a query is : Short Name like "FS - #"
What would be the equivalent for a metatest ?
Thank you
Mehdi
Solved! Go to Solution.
‎28-06-2022 03:19 PM
Yes I this is the option I used. Below the macro :
##################################################
Dim sOrgProcName
blnTestResult = False
sOrgProcName = mgobjToBeTested.GetProp("Short Name")
If Left(sOrgProcName, 5) = "FS - " Then
blnTestResult = True
End if
End Sub
#####################################################
Hope it helps other people.
Thanks
Mehdi
‎24-06-2022 10:03 AM
You can write implementation Macro
Sub RuleApply (oToBeRuled, oRule, sParameters, bRuleResult)
bRuleResult = true
tempStr = oToBeRuled.getprop("Short Name")
end sub