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.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
68 views

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 ...
  • 31
-1 votes
1 answer
496 views

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. ...
  • 349
-1 votes
1 answer
935 views

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 ...
  • 39
-2 votes
1 answer
95 views

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 ...
-3 votes
1 answer
436 views

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 ...
-3 votes
1 answer
1k views

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 ...
-4 votes
3 answers
539 views

how to create dynamic query [closed]

List<Opportunity> opps = [ SELECT Id ,Name ,Amount ,CloseDate ,Stagename ,Near_to_Close_Date__c ...

1
9 10 11 12
13