Questions tagged [sobject]
An sObject represents an object, such as an Account or Campaign. An sObject is the base object for all objects in Apex.
638 questions
5 votes
2 answers
309 views
Apparent inconsistencies between <sObject>.sObjectType.getDescribe() and Schema.sObjectType.<sObject>
While testing some things in the Anonymous Apex window, I've noticed some weird inconsistencies with how <sObject>.sObjectType.getDescribe() and Schema.sObjectType.<sObject> are ...
0 votes
0 answers
212 views
Not able to fetch Content Document Link Object results from flow
I am using a Get Rec on the the Content Document Link Object. Where the condition is Like SELECT ContentDocumentId, Id, LinkedEntityId, ShareType, Visibility FROM ContentDocumentLink WHERE ...
1 vote
0 answers
80 views
In Apex, how can I make map keys dynamic?
I have a class with the following methods: public virtual Map<String, List<SObject>> mapBySpecifiedStringField(List<SObject> homogeneousSObjectList, SObjectField idField) { ...
1 vote
0 answers
119 views
getDescribe().fields.getMap() doesn't return fields removed from Managed Package, but still present
There were fields removed from one of our Managed Packages that were still being used in a Test Sandbox. These fields are visible, editable, available on the Page layout etc. However new Apex code is ...
0 votes
0 answers
132 views
How to retrieve a list sobject name that only contains Standard and Custom Objects when an Org contains 1000+ SObjects
Recently I run into a need to list all custom object and standard object in my org in an UI Component to allow user to search and select. I have tried several ways of implementation, but none of them ...
0 votes
1 answer
83 views
SurveySubject object relationship
I'm a little bit confused. Doc says that SurveySubject has ParentId field that Unique identifier of the SurveyInvitation object or SurveyResponse object that is associated with this survey-object ...
0 votes
1 answer
67 views
Compare 2 Lists of same sobject and store the unique records in a list
I have 2 List<Sobject> one contains existingRecordsList and other updateRecordList. existingRecordsList = (Account:{abc__c=a0o7a000,xyz__c=a0o5r000, id =a0o5r000002GaHhAAK}) updateRecordList = ...
-1 votes
1 answer
640 views
Get all Records Using sObject Collections
I see this page: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobjects_collections_retrieve_post.htm but it seems to require a list of record IDs. I ...