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

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?

  Discussion posts and replies are publicly visible

Parents
  • 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")
        )
      )
    )

Reply
  • 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")
        )
      )
    )

Children
No Data