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
1
vote
0answers
54 views

Unable to create a new Account via Apex

I am facing the issue where I am unable to create a new Account object via apex. However, I can create an account manually. I was wondering if it is related to permissions then I shouldn't be able to ...
0
votes
0answers
16 views

Issues sending array to ISML template via pdict

I am new to salesforce development, so please pardon my ignorance! I am trying to simply send an array of objects from a controller to an ISML via pdict, and assign that object to some bootstrap data ...
1
vote
1answer
26 views

Retrieving field dynamically from anonymous object

I have a scenario where I need to dynamically retrieve fields from a custom object, in which I don't know the type. For the following code, the query is passed in from somewhere else, I just wrote it ...
4
votes
2answers
87 views

Create Instance of Outer Class When Inner Class Shadows Name?

So I have a class (B1) and an inner class (B1 again) in another class (A1). public class A1 { public A1() { //constructor B1 obj = new B1(); } public class B1 { public B1(...
0
votes
1answer
71 views

In a flow, is it possible to set the object (where you want to "Get Records" from or "Update records") dynamically, through a formula for example?

I'm working on a flow in which the current object where the flow is being launched from (for example, a list view of a certain object), becomes the target object in a Get Records / Update records ...
0
votes
1answer
107 views

Survey record is not visible in test class

In my apex class, I have a query on the Survey record like below. And I am using it to create a SurveyInvitation record. Survey sr = [Select id from Survey where name='ABC']; In my test class, this ...
0
votes
1answer
76 views

Get list of objects shown in Object Manager

I'm looking for a way to get the list of objects that are shown in Setup->Objects and Fields->Object Manager, either via sfdx command line or SOQL. If I use: sfdx force:schema:sobject:list It ...
0
votes
2answers
36 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
68 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
39 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
128 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
102 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
60 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
82 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
217 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": [ { ...
2
votes
1answer
952 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
193 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
32 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
28 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
34 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
34 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
39 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
63 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
94 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
380 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
375 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
62 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
261 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
504 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
63 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
52 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
87 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
246 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
167 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
58 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
352 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
420 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
75 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
619 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
283 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
238 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
512 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
36 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
69 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 ...

1
2 3 4 5