I have an error in a deployment and in looking at the deployment file it references an object by its UUID. I can't seem to find the UUID, but I want to know what the UUID is for a specific object in the application to see if it is the offending object in the deployment. How do you find out the UUID is for a specific object?
Discussion posts and replies are publicly visible
In addition to Stefan's advice (how to find nearly any object if you're starting with a UUID), if you have a constant/rule name and you want to GET the uuid, the Content Tools plug-in has a function called "getconstantorruleuuidbyname()". For process models, you can merely view the uuid from within the model properties panel. Other objects have other ways (usually).
I added the plug in, however, I am not sure that it is working correctly.
I created an Expression with two Rule Inputs; objectName and ObjectUUID. The expression is:
ri!objectUUID = getconstantorruleuuidbyname(ri!objectName)
I tried looking for Constants, Expressions, Interfaces and all I get back is false (boolean).
What are you passing in for "ri!objectName"? Did you just try directly passing in a constant or rule name in the expression editor, to watch how the function works, instead of just throwing it to a Rule Input?
Chris.Gillespie said:ri!objectUUID = getconstantorruleuuidbyname(ri!objectName)
Why are you doing this? If this is your Expression Rule code, it is evaluating whether "ri!objectUUID is equal to the result of the Get UUID by Name Function", which would always be a boolean (yes or no). I thought you just wanted to get the UUID in question, in which case you just call the function itself and return that value.
I am trying to write a quick expression rule if I need to find it in the future. I changed the expression to:
getconstantorruleuuidbyname(ri!objectName)
And this works.
Thanks
Chris.Gillespie said:I am trying to write a quick expression rule if I need to find it in the future.
I support this approach. Many expression functions (and even primitive appian functions) don't handle various things very well like null inputs or other corner cases, and their names aren't always the cleanest.
Thanks for sharing the solution in details. ncloud login