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.

86 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0 votes
0 answers
309 views

Getting 404 Error when trying to create a Lead object in SalesForce API

I'm sending a POST request from a connected app to try and create a Lead object in my company's dashboard. Here is the URL that I'm using to post: https://${MyOrganization'sBaseURL}.my.salesforce.com/...
  • 1
0 votes
0 answers
39 views

Make more visible icons on request

Is it possibile to make the icon and the pen in the layout more visible?
0 votes
0 answers
702 views

Is there any possibility to use custom labels inside Rich Text Area field in Salesforce objects?

Hi I want to know whether custom labels in salesforce can be used in rich text area field in salesforce objects ? If possible any suggestions or workaround to achieve the same functionality would be ...
0 votes
1 answer
293 views

Queueable insert list records from map and keep order

I have Map with Account and Account Id. I want to insert that accounts in Queueable and return list of all ids in order as acount is inserted(Or map, it doesnt really matther). How can i keep order if ...
0 votes
1 answer
198 views

Variable does not exist: Name compilation Error

I am trying to create a new case once the rating of a Hotel is < 45% Here Hotel__c is the parent object and Customer_Reviews__c is child Object with MDR Even though there is a field called Name i ...
0 votes
1 answer
51 views

Salesforce objects property

I am running a business in which I provide different services to clients. Now, which object is used for services in salesforce. suppose client want service from my company. Now the service I provide ...
user avatar
0 votes
1 answer
121 views

soap api Owner object type changed after updating WSDL file

We have a vb.net app that use the salesforce soap API. The Enterprise wsdl file originally compiled was dating from 2019, so i updated it to the latest version (API Version 50.0). After Updating the ...
0 votes
0 answers
323 views

Soql with multiple lookups on same object

I am gathering data from the LiveChatTranscript and there are multiple references to user as lookup fields. How do I pick which property I want to use as my reference to user? LiveChatTranscript ...
0 votes
1 answer
232 views

Building out a multi-dimensional array / list for an update statement

I have a contact list I am looping over and one of the fields in the contact object holds 1 or more contactIDs in a delimited list using a carriage return. Standard Contact Object: ContactId: ...
  • 153
0 votes
0 answers
1k views

Account Related List Not Showing Up

I am trying to add an account's related list to the Contact page layout. It will show up for me in Classic and Lightning, but ONLY me, as I am a sys admin. The other profiles have to go to classic ...
0 votes
0 answers
320 views

Where are case comments located?

I am looking for the case comments object within Workbench, but I am unable to find where the replies are being stored. I found the main parent comment located within CommentFeed, and it also shows ...
  • 153
0 votes
0 answers
151 views

Alternative to Delete Trigger for tracking deleted records in OpportunityShare Object

We want to track the deleted records in OpportunityShare Object for some reason. This object doesn't support to write a trigger. Is there way to track those deleted records?. Any suggestion would ...
0 votes
1 answer
215 views

How to get hierarchy of all objects dynamically through schema code

How to get a hierarchy of all objects dynamically through schema code in Salesforce I have code like below. Set<String> strForRelatedObjects = new Set<String>(); Schema.SObjectType ...
0 votes
0 answers
89 views

How to store a collection type (set, map, list) on a object?

I have a visual-force page which displays an Apex form with some dynamic number of input text fields that I would like to save on the Opportunity object. Is the easiest way to serialize them as JSON ...
  • 491
0 votes
1 answer
632 views

Adding new Fields to Sobject or changing field values dynamically

I have a Sobject Record which is already instantiated and fields are added along with values. sObject sObj = Schema.getGlobalDescribe().get(Name of Object).newSObject() ; sobj.put(...
0 votes
1 answer
511 views

How to find the mandatory fields on Sobjects in RestAPI /describe

I am trying to create an oAuth based app that integrates with salesforce to create the objects from the app. To let users know what all fields that users needs to put in at minimum to create the ...
0 votes
1 answer
492 views

Injecting Contact Created in SF on Child BU Journey Builder

I created a Journey in Child BU that uses SF Object Contacts as entry and trigger whenever a Contact Is created. So i tested creating contact and see if it is being accepted under the Child BU JB, but ...
0 votes
2 answers
585 views

Collection read only : Unable to add to set

I have to populate a set of Ids with Ids derived from a List<List<sObject>> say searchlist. Below code as I am trying gives me System.Final Exception as Collection is read only and ...
  • 2,910
0 votes
1 answer
406 views

Not able to update RecurrenceTimeZoneSidKey field on task object

What are the work around the task object in Salesforce, i am trying to update task which is having information in the form of JavaScript object which is mentioned below and when i am trying to update ...
0 votes
0 answers
82 views

$Action.Clone not being saved

I'm using the $Action.clone as a simple command button on a VisualForce page. This works for my user account and profile as an admin. However other users can create the interim SObject but get the ...
  • 703
0 votes
0 answers
528 views

Access Custom Owner Fields in VisualForce Email Template

I have a VisualForce email template that retrieves merge data from a custom object (Enquiry__c). The owner is an individual User. I want to access the value of a custom field on the User object. I'...
  • 133
0 votes
1 answer
198 views

Variable not Being Passed from Visualforce/custom controller to Flow

I'm trying to pass a value selected from a SOQL query, from the VF page to a Visual Workflow. The value I am trying to pass is selectedRibbonClauses. I dont get an error message when i try to save the ...
  • 115
0 votes
2 answers
498 views

How to refer parent account while creating an account

I need to display the account name with a slash between account name and the parent account name , if the parent account field is filled. I tried to do that using SObjectType methods. But couldn't do ...
  • 1
0 votes
0 answers
266 views

How to map name value pair in custom fields to object field name and set the value as field value?

I have a custom object X that stores name value pairs. I need to populate a custom object Y which has field names same as the name part of the value. Through visual flow I need to query object X to ...
  • 103
0 votes
1 answer
35 views

retrieve other fields of a SObject after a user has selected an option

I am writing an app that will help calculate the statute of limitations for certain laws. ex. enter a date that a crime happened on and, after choosing a law and appropriate limitation the limitation ...
0 votes
1 answer
53 views

Trigger Calculation between two fields from different sObjects

I am new to apex. I have two objects blood_bank__c and patient__c. I want to change quantity of blood in blood bank after patient is given some blood. This trigger is not working, and its not allowing ...
0 votes
0 answers
37 views

insufficient previlage Error showing when insert record from modal(popup) Dynamicly

public SObject SobjectNewRecord{get; set;} public void newRecord(){ Map<String, Schema.SObjectType> gd = Schema.getGlobalDescribe(); Schema.SobjectType oType = gd.get(...
0 votes
0 answers
307 views

External id field is not populating when cloning a sobject record

I have used object.clone() here and then changed some field values. All the changes are reflected in the cloned record except not able to populate External Id field which is concatenation of two Id ...
  • 2,910
0 votes
2 answers
392 views

Overwrite an SObject with another SObject without losing related records

In Apex is there an efficient way to overwrite an SObject instance with another SObject (both of the same type) without losing parent and children records? In the following example I want to replace ...
  • 3,866
0 votes
1 answer
64 views

N>Help with Passing Values from one Object picklist to another Object text

I have 3 objects Contact, mList and mEvent. mList is a junction object which has master-detail relationships to both Contact and mEvent. The mEvent has a picklist field called Group_Level__c (values 1,...
  • 665
0 votes
1 answer
67 views

Get info if sObject is 'setup' object from metadata

I need to know if some sObject is setup object during runtime from apex code. Does anybody know how to do it? I checked the documentation on sObject class and didn't find it.
0 votes
2 answers
46 views

Facing 'Field expression not allowed for generic SObject' in my class

//ICRE Map<String,String> objName = new Map<String,String>(); for(Schema.SObjectType f : Schema.getGlobalDescribe().Values()){ if(f.getDescribe().isCustom()){ objName.put(f....
-1 votes
1 answer
30 views

what sobjects are supported in a queue

What objects can in include in Queues? Online i can see only these objects can be in included in a Queue: Cases, Leads, Tasks, Contact requests, Orders, Service contracts, Knowledge articles and ...
-1 votes
1 answer
43 views

Get all records created by user today

We are about to perform Load Testing and we are performing some complex scenarios. We use a CPQ tool that has many custom object records being involved and inserted. Is there an easy way to get ...
-1 votes
1 answer
2k views

error: illegal assignment from string to decimal

public class DemoSObject { public void Demomethod(){ SObject obj; obj = new Account(Name = 'Test', phone = '998877'); Account acc = new Account(); acc.Name =...
  • 1
-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
2