Questions tagged [object]

Referring to an instance in object orientated programming, but within force.com more likely refering to an entity or sObject.

Filter by
Sorted by
Tagged with
3
votes
2answers
27 views

How to deserialize object with nested query in a simply way

I have a JSON of object with nested query and I do not want to use JSON.deserializeUntyped and map values manually. Is there any easy way to do it? For example: Sobject object = (Sobject) JSON....
0
votes
1answer
19 views

Json deserialize System.NullPointerException: Attempt to de-reference a null object

I am trying to deserialize a json string and get the fieldtypes but get an error on the valueType. I am trying to simulate a Json request from postman to send a Post with a list of accounts. I dont ...
0
votes
1answer
32 views

How to dynamically get name of object JSON String

I want to create a generic webservice. As I understood going the way of using Schema.getGlobalDescribe() will result in performance issues. I decided to try using JSON Schema trough Custom metadata ...
0
votes
1answer
50 views

Deserialize a JSON to a List<SObject>

I have an Apex class which has a method having an Object type parameter public with sharing class DmlOnSObjectRecords { @AuraEnabled(cacheable=false) public static void dmlOperationOnSObjectRecords(...
1
vote
1answer
27 views

File Privacy Field access

I am trying to update the File Privacy on Records field via Process Builder for multiple files associated with a custom object record. But unable to do so as this field was not available under ...
4
votes
1answer
50 views

Must I cast a JSON deserialization into an object?

The Apex Developer Guide discusses the deserialize(jsonString, apexType) method of the JSON Class here, with the given example: Decimal n = (Decimal)JSON.deserialize('100.1', Decimal.class); System....
0
votes
2answers
53 views

How to check object name by objectId?

trigger CreateTask on ContentVersion (after insert) { List<Task> insertTask = new List<Task>(); Task newTask = new Task(); Schema.DescribeSObjectResult k=Contact.sObjectType.getDescribe();...
1
vote
1answer
16 views

Copy read-only object received from parent component

I want to make a copy of an object received through an @api property from a parent component (actually, there are two parent components): /* eslint-disable no-console */ import { LightningElement, ...
0
votes
1answer
39 views

how to remove missing field names from picklist field .refer to the image attached

how to remove this missing label from list. I am sending a map containing all the objects of the salesforce org from apex and sending it to the component. @AuraEnabled(cacheable=true) ...
0
votes
0answers
36 views

Issue with Flow: Sharing Object

I have requirement to create a record sharing process using Flow. I have custom object called Project. Account and Project object are in Lookup relationship. The sharing mode is Private. Issue which I ...
0
votes
1answer
22 views

Best way to show a field that queries data from other object based on field selections?

Use case is: I have products that have different prices from different suppliers. Maintaining several pricebooks is too complicated and we would need multiple pricebooks for Opty and orders. So we ...
1
vote
1answer
48 views

Expected JSON object to deserialize apex parameter from at [] [duplicate]

I develop an Apex REST web service in Salesforce and I would like to test it with Postman. Unfortunately, I get an error message than I don't understand: Expected JSON object to deserialize apex ...
1
vote
2answers
36 views

Reference Field Not Listed in Object Reference

I was just going through the APEX developer guide and came accross this statement: " ... For example, the Contact sObject has both an AccountId field of type ID, and an Account field of type ...
-1
votes
1answer
27 views

I need to create a method in the acount trigger to keep an external id field value updated. (continue in body)

This value has to be the name of the account. Every time an account is inserted or its name changes, it is necessary to update the external id. How can i do that? thanx. Public static void updateAcc ()...
1
vote
1answer
90 views

Get only one formula field calculated value

I have created an object with multiple formula fields. Some formula fields are simple and some are complex. I want to get calculated values of few formula fields. To get the value of a formula field, ...
1
vote
1answer
140 views

LWC: Read entries from custom Object without creating Apex Class

how can I create a list of entries from a custom object in Salesforce without needing to create an Apex Class with this list? using only the JS and the HTML files from the lightning web component? JS ...
1
vote
0answers
37 views

UserPermissionsMarketingUser is visible on the User Detail record for user records but it cannot be found in Object Manager

I can select or deselect UserPermissionsMarketingUser for User detail records manually. The field is visible. However, when I click on the Fields and Relationships for the User object using Object ...
0
votes
2answers
57 views

Getting field values in Apex from an Object (not an Sobject)?

I am integrating with a managed package that returns an Object, not an Sobject, but a plain Object in Apex. Using System.Debug the following is shown: {nbrRows=1, rowIds=()} I want to parse this ...
0
votes
2answers
78 views

Trigger to Count the Number of Campaigns a Contact is Associated With

I have a working trigger on CampaignMember that will update an "Events Attended" field on Contact whenever they are added to a campaign. I want to go one step further and limit it to only ...
0
votes
2answers
289 views

LWC JavaScript: Can't Add a Property to Objects While Looping through an Array of Those Objects

I'm trying to loop through an array of objects and add a property to each that meets certain criteria. Here's the snippet: onRecordEditFormLoad(event) { let tempFieldWrapperArray = this....
1
vote
1answer
86 views

FSC does not deployed Action Plan

It is supossed that Financial Services Cloud deploy the Action Plan functionality. In my case, I have already installed and configured FSC but I can't see the Action Plan object in Object manager ...
4
votes
1answer
212 views

What is the “Image” object?

While browsing the Object Manager I found the "Image" object. However, I couldn't find any documentation for it and it's not mentioned in the list of standard objects. What is it good for? Where is it ...
1
vote
1answer
31 views

View list of objects which has any of it's standard button overridden by LC

I have an existing application, which has around 100 objects. My requirement is to check all the objects which have any of their standard button/quick overridden with a lightning component. Doing ...
0
votes
1answer
25 views

SForce Partner Client Create Object with RecordType

I have a PHP web application using the SForce Partner Client to connect with Salesforce. I am creating a new Record Type for a custom object. How can I insert a record with that new Record Type in ...
2
votes
1answer
37 views

Send only udpated fields instead of all the field information

I am integrating an external system with Salesforce and I am sending certain information to the other system from Salesforce once a record is created or updated. I wanted to know if it is possible to ...
0
votes
1answer
48 views

Update SFDC's Date field from Journey Builder

A journey with entry source as Salesforce data, needs to update the Salesforce record's field with TODAYs date. How to achieve this from OBJECT ACTIVITY update or any approach?
1
vote
1answer
37 views

Search in lookup fields [closed]

I want to global search in Salesforce Lightning for a particular field in my custom object which is related to another custom object. Consider, I have two objects A and B. Object A contains: f1 f2 .....
0
votes
2answers
39 views

How to get value of a record after parsing [closed]

I have parsed an object and want to get a value. How do I achieve this. Its a little confusing for me, is this a list I have to loop trough or an object. My debug shows the following: oldList: ...
0
votes
1answer
65 views

Dynamically checking the values of a wrapperClass for a validation

I have a wrapper class. public class wrapperClass{ String s; Date d; Integer i; Id id; } There are different operations for which certain fields are required on these wrapper object. Example 1. for ...
0
votes
0answers
62 views

How to display list of patients in a aura component?

I am new to Salesforce and I currently want to display the list of existing patients in a aura component using the lightning datatable. So ,there are many objects in salesforce like Account, Lead, ...
0
votes
2answers
21 views

Return fields not specified while inserting a record

I have a simple insert method in a test data factory class. However, I noticed that in the returning record, only the Id and Name are returned. I'm assuming the name is returned because I have ...
0
votes
0answers
38 views

“object Object” error message for ST Field Set Form

When using the ST Field Set form, I'm getting an error when referencing 10 project fields on the field set 'Client_Field_set' . I'm logged in as a system admin, so have edit access to all the fields ...
1
vote
0answers
9 views

How can i gain access to the CorsWhitelistEntry object?

I'm trying to get all the cors whitelist right when my applications starts uploading and i have no trobule doing so as an admin. The problems appears when i log in a standard user. I'm getting an ...
1
vote
1answer
57 views

Object Permissions from permissions sets don't work as expected

What does the " -- " in the type of permission object? I need to set this to readOnly
0
votes
0answers
25 views

Access Parent inner class using child class name

I was working integration part, so i need to create a few DTO sample to convert JSON to Object and Object to Json. In my case most part of the Json used remains same for different request and ...
0
votes
1answer
111 views

Check points in Developer Console to see variables values

Instead of using System.debug() to see the variables values, Is possible to set checkpoints in developer console?? I have done that like this: line 34 (Checkpoint) Integer i = 5; Then I click the ...
2
votes
1answer
67 views

How to specify an object definition in custom metadata type

I am building an aura lightning:datatable. For flexibility I am specifying each column definition in a custom metadata type record so that when a column needs to be added or removed, have its title ...
0
votes
1answer
138 views

Can I query email messages sent by Email Alert feature?

SELECT COUNT() FROM EmailMessage does not change after sending an email using the Email Alert feature. I compared it to emails sent from Apex, and created manually, from Case: [Process Builder + ...
0
votes
1answer
741 views

Javascript Object Constructor in LWC

How would one go about creating a javascript object (not literal) in LWC? i understand the standard syntax of something like function bar(dog, cat) { this.dog = dog; this.cat = car; this....
0
votes
1answer
605 views

Using Junction object to display related list

Problem: I need to create a way to view two related fields on a given record between two different custom objects. I have looked up junction objects and it seems that this will be the best solution. ...
1
vote
2answers
370 views

Visual Studio Code debugger - how do I see content of object or map?

I've started using Visual Studio Code to run through my debug logs, but am not seeing the content of certain types of variables and am wondering whether I'm just missing something or whether this isn'...
0
votes
1answer
120 views

What is the leadChangeEvent object?

I've Googled this and found literally no documentation. What is the function of the leadChangeEvent object?
1
vote
1answer
2k views

How to Create an Apex class that returns Account objects

public class AccountUtils { public static void accountByState(){ List<Account> myAccounts = [SELECT Id, Name FROM Account]; } } Why my code doesn't complete the challenge ...
1
vote
2answers
262 views

Can you change set a Big Object?

I am trying to change set a big object from my developer sandbox to a full sandbox. I have seen here in the dev notes that it can be done via the metadata api. But nothing about changesets. So I ...
0
votes
1answer
39 views

Before Insert or Upsert list must not have two identically equal elements even after instantiating within for loop

I have created this following class and test class below. My question is in my class in Line X(commented line X) if i use that instead of Line Y I am receiving the above mentioned error. I put the ...
1
vote
1answer
170 views

User Object - Lastvieweddate & lastreferenceddate

Referring to the User object in particular, what exactly do the fields lastvieweddate and lastreferenceddate refer to? Is the lastvieweddate the last time the user viewed his/her own user information ...
0
votes
1answer
41 views

Why Salesforce has changeEvent version of object in org(even though it is not enabled)

I was browsing my org, and found that changeEvent type of object is available, whereas I did not have it enabled for any object. Doesn't it make available if and only if it is enabled(like share ...
0
votes
0answers
340 views

Where can I find the list view for queues

I am trying to create a package for migration. I am getting the error: "ListView - LiveChatTranscript.Queue1_LiveChatTranscript - The queue queue1 has not been setup to support the object: ...
0
votes
1answer
15 views

return to newly custom object created page [duplicate]

I am creating a new object with an apex class and a controller. My goal is when I call my method that create a new instance of that custom object, to redirect me to the page where the new object is. ...
0
votes
0answers
52 views

Convert object into a custom object

we parted our workflow into 4 different objects on salesforce. These are: Lead Opportunity Deal Exit Each of these objects includes different phases and I would like to create a new record in the ...

1
2 3 4 5