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.
607
questions
0
votes
1
answer
9k
views
Relation between lead, Account, oppurtunity and contact
Please explain me the relation between these 4 sobjects. How lead, Account, Opportunity and Contact are related to each other.
2
votes
3
answers
5k
views
System.QueryException: List has no rows for assignment to SObject
following apex code
public String getLastUpdatedAt() {
String timeStr;
DatadoctorStatus__c last = [SELECT LastUpdated__c FROM DatadoctorStatus__c ORDER BY LastUpdated__c DESC LIMIT 1];
if (last == ...
4
votes
1
answer
1k
views
In Memory Init of sObject with Id for Update
Let's say I have a Contact, we'll say from Trigger.new. If I want to update its parent account, I skip a query by initializing it in memory like this.
Account acct = new Account(Id = contactInstance....
3
votes
1
answer
172
views
Insert sObject share for task that the user doesn't own
As a regular user (not system administrator) is it possible to create a share for a object that I'm not the owner of in APEX?
Or will the DML statement throw an error?
4
votes
3
answers
5k
views
Reports for two lookup objects that relate to a parent
I got a request this week from our customer service group that stumped me.
We use person-account, case, and a custom object called order (that person bought something). Both case and order have ...
3
votes
2
answers
2k
views
Setting Type of Event or Task via SOAP/REST API
I am looking at Object Reference for Event and Task sObjects and seeing that both have Type and Subject. I wanted to use Type as one of meeting, call, email and Subject as event/task title. But, if I ...
3
votes
3
answers
3k
views
SOAP API Request with body larger than 16 Kilobytes results in Timeout Exception
I stumbled upon an interesting limitation, it seems that SOAP API endpoint handles requests larger than 16Kb differently --- whenever body is larger than that request just times out.
We're using '...