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
2answers
34 views

Salesforce - Admin - Object restriction

This question is about Salesforce Object access restriction. Assume that I have one profile that is assigned to 10 different users. I want to restrict an object access for one user alone without ...
1
vote
1answer
48 views

Parse JSON Response - List of Objects

Disclaimer: I am new to JSON parsing in Salesforce, trying to up skill. I am trying to extract the picture links, lets say the 'large' to be able to add to a contact record on record creation; { &...
1
vote
2answers
37 views

How to run a report (or query) to get the number of (first) child records of a record?

Any way I can do this via report? or apex if not? Thanks for your help!
0
votes
1answer
60 views

Convert Map<String, Object> to Map<String,Map<Id,List<Id>>

I use a managed package which publishes some events. I have created a "subscriber" apex class to subscribe to those events. Inputs are: String topic, String subject, Map<String, Object>...
0
votes
1answer
55 views

What are 'View Setup, Edit Setup, Delete Setup' Object Permissions?

These are appearing in Profiles and Permission Sets under Object Settings - I cannot find any documentation on this - can someone please explain/elaborate? Thanks, Parikhit.
0
votes
1answer
32 views
0
votes
1answer
26 views

Why is my AccountHistory object missing?

My AccountHistory object cannot be found by Data Loader nor within Salesforce Record Type.
0
votes
1answer
44 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
103 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
241 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
92 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
27 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
21 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
29 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
21 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
24 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
29 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
51 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
55 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
192 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
169 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
43 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
169 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....
3
votes
1answer
332 views

Easy way to tell which objects will utilize IsDeleted flag?

It seems most objects, when deleted, will get their record updated with IsDeleted = true while they stay in the recycle bin until they're purged. However, we have found some objects just get ...
0
votes
2answers
61 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
22 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
42 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
67 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
24 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
166 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
103 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
35 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
252 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
348 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
58 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
228 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
199 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
1k 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
209 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
417 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
33 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
34 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
52 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
129 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
77 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
40 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
181 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
24 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
2 3 4 5