function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Anuja SatardekarAnuja Satardekar 

Displaying available Record Types for Call Object

Hi,

I am working on the JavaScript code using MyInsight library. I want to display all the available Record Types for the ‘Call' object.

I tried querying for the 'RecordTypeID' from the 'Call' object using runQuery() method. I did not get all the available Record Types, but only got those Record Types for which Calls were recorded. 

Please let me know how I can get all the available Record Type values.

Also, can you please provide me the object name through which I can get the Record type name from the RecordTypeID. I tried using RecordType object, but its not present in the object list.

Thanks in advance,
Anuja
kevin lamkevin lam
You need to query the RecordType object like this:

SELECT Id, SobjectType, Name, DeveloperName FROM RecordType WHERE SobjectType = 'Call'

To get the record type name with the Id:

SELECT Name FROM RecordType WHERE Id = 'your record type id'