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
Hello anupg800
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.
The export log file should include all UUIDs. Extracting them needs some manual work.
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") ) ) )