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
0
votes
1answer
29 views

How to determine which objects / object permissions are applicapble / not applicable for a given profile?

Some Salesforce objects have own section within Object Permissions list in specific profiles, other not. As I know ObjectPermissions has ParentId field which points to PermissionSet associated with ...
1
vote
1answer
22 views

Update Nested Array Object passed from Parent to Child in LWC

I have the below array which is being passed from other component. var myArray = [ { "Sequence": 1, "Value": 1, "sections": [ { ...
1
vote
1answer
41 views

Apex cast List<Object> into List<SObject>

My method returns a list of Object. I wanted to add that to a list of specific SObject. List<Account> accList = new List<Account>(); List<Object> objList = new List<Object>(...
0
votes
1answer
23 views

Object Manager access

How can I give access to Object manager to a particular user having the profile which not having access to object manager.? Any Alternate way other than assigning System Admin Profile , Also I dont ...
0
votes
1answer
24 views

Judge an apex object is a class type not a specific class type

We can use instanceof keyword to verify an object is a specify object type, like Id, String, Integer, Datetime... Object str = 'aaa'; System.debug(str instanceof String) // true public class ...
0
votes
0answers
17 views

Converting an object from Classic to Lightning

I'm working on Salesforce and just wonder how to convert an object in classic to lightning. For example, we want to convert an activities tab(object) from classic to lightning.
0
votes
1answer
24 views

mapping a new array of objects results in undefined

I'm using this method: processPromotions(){ let promotionWithItem; this.allPromotions = this.sellerPromotions.map(promotion =>{ promotionWithItem = this.findPromotion(promotion, ...
0
votes
0answers
17 views

Custom object is not editable

I have created a custom object named "Product" with a lot of different fields, but for some reason I can't edit them. Even if I am creating a new product inside the list I can put only "...
0
votes
0answers
15 views

Attempt to de-reference a null object - Object.eval

My sales team keep receiving the following "attempt to de-reference a null object" error.  I've browsed the forum for an answer, and almost all appear to require the use of the Developer ...
1
vote
1answer
26 views

Apex object returning null

I have this Apex class where I have custom objects as defined and debug statements. From the code it seems it is not able to build subObject here. global class TestApexClass { global static void ...
3
votes
2answers
38 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
29 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
44 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
67 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
34 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
82 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
56 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
19 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
48 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
23 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
96 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
63 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
29 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
163 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
249 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
49 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
103 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
124 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
570 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
159 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
299 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
30 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
40 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
78 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
60 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
105 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 ...
1
vote
0answers
11 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
82 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
1answer
150 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
87 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
284 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
881 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
912 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
499 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
132 views

What is the leadChangeEvent object?

I've Googled this and found literally no documentation. What is the function of the leadChangeEvent object?

1
2 3 4 5