When I call the plugin GetConstantOrRuleUUIDByName() with a previously created expression it does return the UUIDD, however when I create a new expression it returns the name of the expression and not the UUIDD.
Discussion posts and replies are publicly visible
Are you sure that the new expression rule object has been saved and you are using the correct name for it in the function
Yes, I'm totally sure
Works just fine for me. By any chance are you trying to call this function for a rule which has been created in some other environment. I can only see it returning the name of rule when a rule with the provided name do not exist.
No, I have tried with some rule from the same environment.