Question
7
Replies
3045
Views
Posted: March 6, 2018
Last activity: March 7, 2018
Expression Builder/Function in activity
MyPage.MyPage.Myvaluelist(21)
Myvaluelist(21) = ABC123
I am attempting to parse ABC123 so that only the number 123 is passed to PEGA using the Expression Builder in activity.
I tired substring but cannot seem to get it right.
MyPage.MyPage.MyValuelist(21) = Substring(ABC123,Int StartIndex=0, Int endIndex=5)
I get error saying:
-Invalid expression or reference: Operation "==" is not permitted on types: includedpage and integer
See Attachment
Hi,
Can you try the following?
MyPage.MyPage.MyValuelist(21) = @(Pega-RULES:String).substring(ABC123, 0, 5)
Thanks,
Susan