Question

3
Replies
91
Views
Adriana0602 Member since 2019 3 posts
None
Posted: 7 months ago
Last activity: 7 months 3 weeks ago

@substring function not working correctly with Alpha Characters

Hi!

I am trying to use the function substring to determine an action that must be taken when the first position of a value does not starts with a specific letter:

@substring(.ReferenceNumber,0,1)!="F"

However, when I run my process is not working. I tried to run from the decision table and it keeps giving me a wrong result. I attached a picture with the test Page Result.

What I used, that works great was !@startsWith(.ReferenceNumber,"F"). However, I dont understand why the substring validation is given an unexpected result.

Any Thoughts?

Pega Platform Low-Code App Development
Share this page LinkedIn