Timeline for Checking Record Type Id of object
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 29 at 16:05 | vote | accept | John Gilani | ||
Aug 26 at 18:01 | comment | added | John Gilani | Yes I have tried cd.LinkedEntityId.RecordTypeId, upon compile I get the error: "A non foreign key field cannot be referenced in a path expression: LinkedEntityId" | |
Aug 26 at 17:58 | comment | added | David Cheng |
Have you tried cd.LinkedEntityId.RecordTypeId or cd.LinkedEntity.RecordTypeId in your if statement? I think one of these should work even though the LinkedEntityId is polymorphic. Remember that RecordTypeId is a standard field on any object that allows record types. getRecordTypeId()` definitely will not work because it is only for RecordTypeInfo .
|
|
Aug 26 at 17:50 | answer | added | David Cheng | timeline score: 1 | |
Aug 26 at 17:34 | history | asked | John Gilani | CC BY-SA 4.0 |