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

Not available Case Information fields in report type

I'm trying 2 Report types and I have problems with fields availability. REPORT TYPE 1: Cases standard report type. With this, I can access to 'Case information' fields like Age, Opened Date, and so on....
user avatar
  • 155
1 vote
1 answer
39 views

How to fetch name field for a record of given record id but known object?

I am trying to obtain all related child (look up) records of a record whose record id is passed. Salesforce docs say that for every object, regardless of type, name is a standard field, just like Id. ...
user avatar
0 votes
1 answer
61 views

Apex - Insert json value into custom field

I am inserting records into custom object Rating__c via trigger. This object has a field that stores json value against each record based on Account ID(Related Account). Example: {"attributes&...
user avatar
  • 1
0 votes
1 answer
48 views

How can I get key prefixes of each object from a Salesforce Instance with pythons simple_salesforce API?

I want to extract keys for each Salesforce object (including custom) from a Salesforce environment via the simple_salesforce python library. That is, I want a pandas dataframe that looks as follows: ...
user avatar
  • 11
1 vote
1 answer
50 views

Datorama array size after the use of SPLIT

On Datorama when trying to get the length of an array I'm able to get it using a calculated dimension by: a = SPLIT([Media_Buy_Name],'_') return EXTRACT(a[a.length-1],'&',0) But when using the ...
user avatar
0 votes
1 answer
39 views

I have a Cross object checkbox formula that checks whether a texbox has been checked or not. Why does it return a "No" if the box is checked?

IF(Member__r.Member__r.Confirmed_Certification_Holder__c = TRUE, "Yes", "No")
user avatar
1 vote
1 answer
35 views

Theoretic question about sObject

I am currently at module Apex Basics & Database > use sObjects lesson; Here they told me I can use a generic sObject datatype to any fields or objects, and show me this code: sObject sobj1 = ...
user avatar
1 vote
1 answer
55 views

How to edit Field Level Security of Attachment Object (Notes & Attachments)?

is there a way to edit the Field Level Security for the Notes & Attachments object? I've tried from both Lightning and Classic but I can't find the object and a way to edit it...
user avatar
  • 132
-1 votes
2 answers
91 views

AccountId in Campaign Member - How to deploy standard field?

In my sandbox, the Campaign Member object has a field AccountId, and this field is not custom field, as it does not have __c, hence it is standard field. In my production, the Campaign Member object ...
user avatar
0 votes
1 answer
29 views

Proper Use of EntityDefinition, FieldDefinition objects' DeveloperName, DurableId, and QualifiedApiName fields

Please help me understand the SF documentation and the proper use of these fields, in terms of accurately identifying an instance of an EntityDefinition or FieldDefinition object. The use of the word &...
user avatar
  • 105
0 votes
1 answer
18 views

Fetch fields from another objectApiName with Aura

I am doing the following code <lightning:recordEditForm recordId="{!v.recordId}" objectApiName="Opportunity"> <lightning:messages /> ...
user avatar
0 votes
1 answer
188 views

Line break in a property of JS in Lightning accordion

Is it possible create a line break in a property of a JavaScript object? Like this: const test= { name: account.Section__r.Name, label: account.Section__r.Name + '\n' + account....
user avatar
  • 155
0 votes
1 answer
54 views

How to create a record in link with other object

I am new to apex triggers and starting new with trailhead i have this task to do : Implement database trigger for Order object ● Trigger should create an invoice record for the order record always ...
user avatar
0 votes
0 answers
52 views

How to handle the special symbol vertical bar "|" when saving a string into a JS object

I am trying to store the content of a Salesforce custom object data into a JS object. My issue is that one object property (LaborTask) has string values with the vertical bar in it (this bar |). For ...
user avatar
0 votes
0 answers
20 views

How to create a new event with Object activity in JB?

I am trying to create a new event with Object actvity through Journey Builder, but it gives me a soft error: " Specify a required field", but it doesn't tell me what data I'm missing. I have ...
user avatar
2 votes
1 answer
1k views

apex : convert object to a list

I have an object with value (s1,s2,s3,s4) (this is the value i get during System.debug) now i want to convert this values to list of strings , i.e ['s1','s2','s3','s4']. how can i do that? i tried , ...
user avatar
-1 votes
1 answer
75 views

Can I Convert Map<String,sobject> to Map<String,object> [closed]

I have Data in MAP<String,sobject> type map and I wants to put it in Map<String,object> type Map. Please help with this casting.
user avatar
1 vote
2 answers
587 views

Access Object property in APEX

Given the next code: Object deserializeResponse = JSON.deserializeUntyped(response); System.debug('DESERIALIZERESPONSE' + deserializeResponse); //DESERIALIZERESPONSE: {proposalIds=null, ...
user avatar
  • 155
0 votes
1 answer
204 views

Enable Map type to hold Integer, String, Boolean, Map, List... objects? (But not generic Object)

I'm attempting deserialize a list of a custom object in Apex, but got an error: FATAL_ERROR System.JSONException: Apex Type unsupported in JSON: Object This is because my ContactPostBack class ...
user avatar
  • 9
0 votes
0 answers
32 views

User unable to see object in a custom report type

I have a custom report type with Users as the primary object, Opportunities (created by) as a secondary and Accounts as the last object. One of my users when creating (or viewing) a report using that ...
user avatar
1 vote
1 answer
195 views

How to write SOQL query in Salesforce to get total row/record counts of each object along with the object name?

SELECT qualifiedapiname FROM EntityDefinition WHERE IsQueryable = true AND IsRetrieveable = true AND IsDeprecatedAndHidden = false LIMIT 2000 Above query lists all SFDC standard/custom objects....
user avatar
  • 111
3 votes
1 answer
132 views

Bug or feature: why SObject[] is instance of SObject?

Run this in Execute Anonymous system.debug( new SObject[]{} instanceof SObject ); "compileProblem": "Operation instanceof is always false since an instance of List is never an ...
user avatar
  • 33.6k
1 vote
0 answers
62 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 ...
user avatar
  • 33
0 votes
0 answers
132 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 ...
user avatar
  • 101
1 vote
1 answer
101 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 ...
user avatar
  • 155
4 votes
2 answers
180 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(...
user avatar
  • 1,202
0 votes
1 answer
718 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 ...
user avatar
  • 125
0 votes
1 answer
736 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 ...
user avatar
  • 228
0 votes
1 answer
498 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 ...
user avatar
  • 101
0 votes
2 answers
42 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 ...
user avatar
1 vote
1 answer
315 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; { &...
user avatar
  • 13
1 vote
2 answers
49 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!
user avatar
0 votes
1 answer
753 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>...
user avatar
0 votes
1 answer
221 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.
user avatar
0 votes
1 answer
254 views

Can we hide / block access standard objects from some specific profile / users [closed]

If this is possible, what's the way to do it?
user avatar
0 votes
1 answer
41 views

Why is my AccountHistory object missing?

My AccountHistory object cannot be found by Data Loader nor within Salesforce Record Type.
user avatar
  • 319
0 votes
1 answer
294 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 ...
user avatar
  • 645
1 vote
1 answer
415 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": [ { ...
user avatar
2 votes
1 answer
4k 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>(...
user avatar
1 vote
1 answer
531 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 ...
user avatar
  • 11
0 votes
1 answer
69 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 ...
user avatar
0 votes
1 answer
65 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, ...
user avatar
0 votes
0 answers
95 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 "...
user avatar
1 vote
1 answer
93 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 ...
user avatar
  • 1,095
3 votes
2 answers
107 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....
user avatar
0 votes
1 answer
199 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 ...
user avatar
  • 2,090
0 votes
1 answer
696 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 ...
user avatar
  • 2,090
0 votes
1 answer
1k 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(...
user avatar
  • 1,093
1 vote
1 answer
113 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 ...
user avatar
  • 305
4 votes
1 answer
410 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....
user avatar

1
2 3 4 5 6