Fetch empty text value of type external id using SOQL query in apex. I am using this query :

Select id,name,CommentBody__c,CommentId__c,ParentId__c 
from Case_Comment__c 
where ParentId__c =:caseObj.id

Where CommentId__c is external id type field.


If you are checking those values in the debug or creating a JSON then those null values will be ignored.

You can create a wrapper to check those null values in the apex or can even use the null check.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.