Skip to main content
added 283 characters in body
Source Link
manjit5190
  • 8.1k
  • 17
  • 34

The line Account.SObjectType.getDescribe().getRecordTypeInfos() is an apex code line so it would work only in Apex class/trigger.

The declarative way to do it would be to use the get record element on the RecordType object or you can create generic plugin to do that which will require some Apex code.

Updated:

For getting localized strings, you need do a query on RecordType and store the Id, then you can query on the RecordTypeLocalization object specifying the condition. ParentId in RecordTypeIds. Then you can pass Parent Id forward when user selects the Record Type

The line Account.SObjectType.getDescribe().getRecordTypeInfos() is an apex code line so it would work only in Apex class/trigger.

The declarative way to do it would be to use the get record element on the RecordType object or you can create generic plugin to do that which will require some Apex code.

The line Account.SObjectType.getDescribe().getRecordTypeInfos() is an apex code line so it would work only in Apex class/trigger.

The declarative way to do it would be to use the get record element on the RecordType object or you can create generic plugin to do that which will require some Apex code.

Updated:

For getting localized strings, you need do a query on RecordType and store the Id, then you can query on the RecordTypeLocalization object specifying the condition. ParentId in RecordTypeIds. Then you can pass Parent Id forward when user selects the Record Type

Source Link
manjit5190
  • 8.1k
  • 17
  • 34

The line Account.SObjectType.getDescribe().getRecordTypeInfos() is an apex code line so it would work only in Apex class/trigger.

The declarative way to do it would be to use the get record element on the RecordType object or you can create generic plugin to do that which will require some Apex code.