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
0 answers
10 views

How to save a lookup field value for using in lwc

<form > <lightning-record-edit-form object-api-name="Screen_Flow_Lookup__c" oninput={handleLoad}> <lightning-input-field field-name="...
0 votes
1 answer
19 views

How to check if a http response is null when it is an empty object and status code is 200?

Im making a POST to an endpoint and this is what I get back in my response, its a successful POST and the status is 200 but the payload is empty. { "payload":[], "datetimestamp"...
0 votes
0 answers
15 views

Best way to add Real Estate Company and Realtors and associate with leads and opportunites

I am just trying to figure out the best way to go about this. We are a mortgage brokerage who mainly uses LEADS when a new lead comes in and then once we get the client into process it converts to an ...
3 votes
1 answer
69 views

Reactive array of objects and "Use Lightning Web Security for Lightning Web Components"

I have a component that iterates through a property that is an array of objects. <template> <template for:each={widgets} for:item="widget"> <p key="widget.name"...
0 votes
0 answers
54 views

Cannot query Account Number field on Order!

having an issue when querying via SOQL the AccountNumber field from the Order object despite the fact that on field level security I am able to see that it is visible to everyone. When I open the ...
0 votes
1 answer
25 views

Pardot - why is using own objects and sync mechanism? [closed]

I am learning about Pardot Cloud. I have searched a lot but did not find answers that will satisfy my questions. By learning on trailhead, I know that Salesforce treats Pardot as something as "...
0 votes
1 answer
86 views

What are the objects (or) Account forecast objects does not support Triggers in Manufacturing Cloud?

I came across this question which was asked in the 'Manufacturing Cloud' Certification.
0 votes
1 answer
192 views

Restrict User Access to Object by Field Value [duplicate]

Is there a way to restrict a user's access to a subset of objects by field value? Essentially I'm trying to create a profile that only has access to orders/accounts/contacts that have a boolean field ...
0 votes
0 answers
48 views

UpdateSingleSFObject function is not working correctly

I need help with my code snippet. It's part of an automation that first of all use a query to get the emails from contacts that I need to update in Salesforce CRM. Next to get the emails, I execute a ...
  • 1
0 votes
0 answers
55 views

Pass a record from object to salesforce community

I created this object containing FAQs. Later I created a lwc component that should pass me the FAQ in this object in my community, but rightly if in "getRecord" I put "$ recordId" ...
-1 votes
1 answer
50 views

Get object with specify id from list object in APEX [closed]

I have a list like following: List<idName> = [idName:[name='AAA', id=1], idName:[name='BBB', id=2], idName:[name='CCC', id=3]] And one input is equal 2; So how can I ...
  • 23
0 votes
0 answers
26 views

How to add object permissions using the rest explorer in work bench . Do we have an insert api to do the same?

I am trying to fine the api end point for giving the read and view all object permission for the CDP org . It would be really helpful if I can get those information. This is to automate the process of ...
-1 votes
1 answer
88 views

How Apex Clone Works

I tried cloning a PendingServiceRouting object within the apex class. But few attributes are missing in the cloned object(Id, CreatedDate). Can someone explain what is happening here? How can we copy ...
  • 101
1 vote
0 answers
27 views

Is it possible to change the contact field on all cases from a lookup to a non-linking text field?

We are cleaning up old contacts and running into the issue of being blocked by linked helpdesk cases. We no longer use Salesforce as a helpdesk but would like to keep record of cases in case we need ...
0 votes
1 answer
276 views

Unable to set object permission

As and admin I have cloned a profile and am trying to restrict the access of the new profile to only several objects. First I want to remove the access to object "Financial goals". I uncheck ...
1 vote
1 answer
332 views

How can we upsert a record in the object, querying by a particular field?

How can we upsert (insert if not found, update if found) a record in the object, querying by a particular field (in our case: UserID__c)? We tried to PATCH the following request URL: $userId = $_POST['...
1 vote
1 answer
130 views

How do I get my record name instead of RecordID?

Currently, I have three objects namely: User, Review and Cases where a user can create a case and other users can make reviews on the cases. This is illustrated in the schema as shown below: In my UI,...
0 votes
0 answers
38 views

How to use Record Type for this specific question

I am in the process of adding a new object to my org. I am unsure how to store all the information I need on this object. I need to have 5 sections every time I update this object: 3 sections that ...
  • 1
0 votes
0 answers
81 views

Does the VLOOKUP function used in validation rules result in a SOQL call?

We are considering using the VLOOKUP function in a validation rule, but want to make sure that it does not perform a SOQL query, thus costing us on our limits. I tried googling and no specific ...
  • 11
1 vote
1 answer
89 views

Are Object Limits available from a Salesforce API? [duplicate]

When in Object Manager, there is 'Object Limits'; which displays the high-level limit info of that particular object. It would be helpful to be able to query this via a Salesforce API. It seems that ...
0 votes
1 answer
105 views

Is there a way to create/add NEW Quote/Invoice in Order sObject? [duplicate]

Is there a way to create/add a NEW Quote/Invoice directly in the Order Object? I have noticed that only the Opportunity Object have this option (to add/create a NEW Quote). SO, I was wondering if ...
-1 votes
1 answer
25 views

New object window ; is it possible to change locations of the fields

New object window ; is it possible to change locations of the fields
0 votes
1 answer
228 views

Component Error has occurred: Uncaught Error in $A.getCallback() [ErrorAttempt to de-reference a null object]

I am not a developer but would like guidance into an issue a specific User sees when trying to add List Members to a Campaign. This only applies in Prod and not UAT. Not sure where to begin. A ...
0 votes
0 answers
122 views

Check Field Usage of All Objects at Once

I have a Field Trip application in my org, however, it requires you to analyze each Object individually. It would take quite a bit of time to go through and create a report for ~300 objects. Is there ...
-1 votes
1 answer
421 views

Conversion of String to the Field data type in apex

I have an JSON which changes dynamically with respect to the Fields in the field set. For example, sometimes JSON can look like: { 'Name': 'SFdev', 'IsGenuine__c': 'True', 'No_Of_Active__c: '3' }...
  • 37
0 votes
0 answers
104 views

Database.emptyRecycleBin and Empty your organization's recycle bin not deleting records

I'm trying to understand why records are not getting removed from our recycle bin. When I go to the UI and click 'Empty your organization's recycle bin' it doesn't appear to dump the data. Also ...
  • 909
-1 votes
1 answer
254 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....
  • 185
1 vote
1 answer
677 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. ...
0 votes
1 answer
369 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&...
  • 1
0 votes
1 answer
241 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: ...
  • 113
1 vote
1 answer
190 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 ...
0 votes
1 answer
277 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")
1 vote
1 answer
74 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 = ...
1 vote
1 answer
202 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...
  • 142
-1 votes
2 answers
377 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 ...
0 votes
1 answer
323 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
0 votes
1 answer
53 views

Fetch fields from another objectApiName with Aura

I am doing the following code <lightning:recordEditForm recordId="{!v.recordId}" objectApiName="Opportunity"> <lightning:messages /> ...
0 votes
1 answer
751 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....
  • 185
0 votes
1 answer
497 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 ...
0 votes
0 answers
200 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 ...
4 votes
1 answer
6k 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, ...
-1 votes
1 answer
686 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.
1 vote
2 answers
2k views

Access Object property in APEX

Given the next code: Object deserializeResponse = JSON.deserializeUntyped(response); System.debug('DESERIALIZERESPONSE' + deserializeResponse); //DESERIALIZERESPONSE: {proposalIds=null, ...
  • 185
0 votes
1 answer
788 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 ...
  • 9
1 vote
1 answer
1k 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....
  • 111
3 votes
1 answer
180 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 ...
  • 34k
1 vote
0 answers
139 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 ...
  • 45
1 vote
1 answer
268 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 ...
  • 155
4 votes
2 answers
434 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(...
  • 1,272
0 votes
1 answer
1k 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 ...
  • 135

1
2 3 4 5 6