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.
Queried column disappears from results
I just added a new field to a custom Salesforce Object. I now want to query that field from the database. If I query it from the developer console, everything is fine. However... If I query it from ...
New button to create auto-populated quote record
I was wondering what the best approach would be to add a button on an opportunity page to generate a new quote record that has some data fields auto-populated with data from the parent opportunity. ...
Error: "SObject row was retrieved via SOQL without querying the requested field" [duplicate]
I'm getting this error while running this VF Page Error: SObject row was retrieved via SOQL without querying the requested field: Task.LastModifiedById An unexpected error has occurred. Your ...
The map collection declared by apex is not accepted by lwc
The map collection declared by apex is not accepted by lwc. Schema to get all field names corresponding to the object.I made apex code using SObjectType. System.debug was used to verify that there ...
I just want to display the values in picklist on VF Page
String soql = 'Select '+ pickField +' From '+ pickobjects; list<SObject> sObj = new list<SObject>(); sObj = Database.Query(soql); now i want to put the values of the list sObj into a ...
Remove field from object list in class [closed]
I have list of accounts and want to use them for post request. How can I remove unnecessary fields like id to set that list in setbody? Now I am just using for loop and json serialize. Some code. So I ...
how to create dynamic query [closed]
List<Opportunity> opps = [ SELECT Id ,Name ,Amount ,CloseDate ,Stagename ,Near_to_Close_Date__c ...