Skip to main content
March 19, 2024
Question

Get the list of all UUIDs of the record types used in my application

  • March 19, 2024
  • 3 replies
  • 0 views

In order to force sync all record types when importing an application, I have to add the force sync line in the properties file along with the UUID of each record type. Where to get a list of all UUIDs of the record types used in my application?

3 replies

konduruc733182
March 19, 2024

Hello [mention:2975edf47bf646f3be3aada495ecdea5:e9ed411860ed4f2ba0265705b8793d05] 

You can find the UUID from the properties of the Record Type Object. AFAIK That is the only way. Else If you have enough permissions, When you export your application you can see the META-INF folder where you will find the Export TXT document. In that you will find the Record Type object UUID and Content ID list.

stefanhelzle0001
Brainy
March 19, 2024

The export log file should include all UUIDs. Extracting them needs some manual work.

March 26, 2024

Hello, 

Kindly find below an expression rule that takes a list of record types (ri!recordTypes of type Record Type) and returns the force sync lines.

a!localVariables(
  a!forEach(
    items: ri!recordTypes,
    expression: a!localVariables(
      local!recordType: fv!item,
      local!xml: toxml(local!recordType),
      local!uuid: xpathsnippet(local!xml, "//a:RecordType2[1]/@a:uuid"),
      concat("recordType.", local!uuid, ".forceSync=true")
    )
  )
)