Skip to main content
chrisg0006
December 2, 2024
Solved

How do you find the UUID for an object

  • December 2, 2024
  • 11 replies
  • 0 views

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?  

    Best answer by mikes0011

    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?

    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.

    11 replies

    somasundaram.d
    December 2, 2024

    You can get the UUID of the objects in the export log

    Also if you have the UUID, you can also search against it in the designer

    stefanhelzle0001
    December 2, 2024
    I can't seem to find the UUID

    What exactly do you mean with this?

    Did you try this?

    mikes0011
    Brainy
    December 2, 2024

    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).

    chrisg0006
    December 2, 2024

    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).

    mikes0011
    mikes0011Answer
    Brainy
    December 2, 2024

    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?

    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.