cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

IPS Transformation - Condition not working

N471
Newcomer
0 Likes
341

Hello guys,

We are mapping attributes with IPS transformations (Source Entra ID / Target IAS) and I am having an issue when setting a condition that is not working. (line 18)

 

            {
                "sourcePath": "$.givenName",
                "targetPath": "$.userName",
                "functions": [
                    {
                        "function": "substring",
                        "beginIndex": 0,
                        "endIndex": 1
                    },
                    {
                        "function": "concatString",
                        "suffix": "$.surname"
                    },
                    {
                        "condition": "($.surname.length() > 11)",
                        "function": "substring",
                        "beginIndex": 0,
                        "endIndex": 12
                    }
                ],
                "correlationAttribute": true
            },

 

Whitout the condition "condition": "($.surname.length() > 11)" it is working fine but when there is a login name which is less than 12 characters I get an error during the provisioning job.

So I would need the last part (lines 17 to 22) to run only when a login name is longer than 12 characeters but their must be a syntax problem on my condition.

Any ideas?

Cheers

N

CC @Yogananda @Colt @MartinRaepple 

Accepted Solutions (0)

Answers (0)