I am having issues with my compare sting operator. I am trying to compare an attribute with a variable. When I use use a static string value, it works but when I use a variable with the same value it fails. I need to use a variable because it will contain the current date
When I change the loop variable to how you did it, I get the error lines under my variable and also when I run the flow now, It doesn’t run correctly whether I use a variable or hard code the input as text
I see that the compare string is adding a .$ to variable B. Does anyone know why this would be happening. I have 2 loops with the same compare string format, but 1 is working and the other is not and the only difference I can see is one of them adds the .$ to the variable which is causing it not to work
This one works
Have you looked at the JSON response for the loop? Based on the docs for loops your output should appear something like this. The reason that it was suggested to [0] is because this returns a list and you need to define which object in the list you want to target. By putting [0] you are telling the complier to grab the first object in the list then you a dot walking to the attribute in which you want to grab. I hope this helps.
I see that the compare string is adding a .$ to variable B. Can this be the issue?. I have 2 loops with the same compare string format, but 1 is working and the other is not and the only difference I can see is one of them adds the .$ to the variable which is causing it not to work
Now comes the fun part of trying to figure out why the one has .$ in it and the other one does not. If that is the only difference then I would think that would be why you are having issues. Now we just need to figure out why it is populating that way.
That is actually supposed to happen. When you reference a variable instead of adding directly a value, at that time SailPoint is renaming the variables accordingly. For example in this case, I have added $.defineVariable.o as a String value.
In this case there is no .$ in the key name. Check out VariableB