You need to sign in to do that
Don't have an account?
Anuja 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
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
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'