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

Create and populate custom object in Salesforce

I have built a custom survey system, and I would like to see the option on saving the results in Salesforce, on a custom object. In general, the object will have the following fields: Start date (...
Stratos Nikolaidis's user avatar
1 vote
1 answer
53 views

View default record type on all the objects on a particular profile

Is there any way we can view the default record type for all the objects custom/standar for a particular profile rather than going on each object and checking its default record type because there ...
SFDC_learner's user avatar
-1 votes
1 answer
48 views

Can't find this field under any object in Salesforce

Im building a report under "Contacts with Activities" and there is a field called "Assigned". I tried looking in every single object, in object manager, and the closest thing I ...
RK5123's user avatar
  • 1
-1 votes
1 answer
76 views

Is profile considered as an object?

I'm asking because someone mentioned that a new field was added to our profile table, but when I checked, I couldn't find "Profile" in the object manager... Any idea how a field was added in ...
Etothez's user avatar
0 votes
3 answers
146 views

Getting a list of the items in "Fields & Relationships" under Object Manager

I thought that this should be fairly straightforward, but I'm not finding a way to do it. If I go to Object Manager, then Account, and then Fields & Relationships - I need a way to get a csv of ...
lengthy_preamble's user avatar
0 votes
1 answer
108 views

How to retrieve exactly all SObject Names in Object Manager

On the Object Manager tab, My org has 173 objects with 172 standard objects and 1 custom object. However, when I use System.debug(Schema.getGlobalDescribe().values().size()); It returns 1058 records. ...
Tuấn Trần quốc's user avatar
0 votes
2 answers
30 views

Description Validation Rule Help

I have to create a validation rule "n/a should never be placed inside a description field" and cannot figure it out.
Artimus Fowl's user avatar
3 votes
1 answer
200 views

Methods inherited from Object class

The Apex includes a system class named Object which serves as the foundation (superclass) for all standard and custom types. Questions Which methods does the Object class contain, and which ones can ...
Piotr Gajek's user avatar
  • 2,555
0 votes
1 answer
55 views

Issue querying custom object with external ID in webhook-triggered Apex class

I'm new to Salesforce and Apex, and I'm encountering an issue with my webhook setup. I've created a site using an Apex class to receive webhooks, and it's working well. The problem arises when I try ...
Christian Langer's user avatar
0 votes
0 answers
54 views

What is the possbile reasons for a record in AccountShare Object disappeared suddenly?

Just found some records in my AccountShare Object disappeared suddenly. All related objects(Accounts,group,etc),batchs and tables are checked and nothings has changed. row casue remained unchanged too....
Harris's user avatar
  • 1
0 votes
1 answer
1k 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"...
potato46's user avatar
3 votes
1 answer
248 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"...
nstuyvesant's user avatar
0 votes
0 answers
98 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 ...
Bartek 's user avatar
0 votes
1 answer
48 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 "...
Łukasz Franczyk's user avatar
0 votes
1 answer
374 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.
Senthamizh's user avatar
0 votes
1 answer
562 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 ...
user3609814's user avatar
0 votes
0 answers
50 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 ...
pvpolo's user avatar
  • 1
0 votes
0 answers
86 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" ...
Giuseppe's user avatar
-1 votes
1 answer
81 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 ...
Richard's user avatar
  • 33
-1 votes
1 answer
789 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 ...
xyzabc's user avatar
  • 101
1 vote
0 answers
76 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 ...
KKulhanek's user avatar
0 votes
1 answer
1k 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 ...
Alpar.Balo's user avatar
1 vote
1 answer
890 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['...
Platoscave's user avatar
1 vote
1 answer
376 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,...
H4shBrown's user avatar
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 ...
Ruth's user avatar
  • 3
1 vote
1 answer
261 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 ...
Andy Hitchings's user avatar
0 votes
1 answer
247 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 ...
Salesforce Newbie's user avatar
-1 votes
1 answer
36 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
Adam 's user avatar
0 votes
1 answer
384 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 ...
Aron Schor's user avatar
-1 votes
1 answer
1k 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' }...
Rahul Allada's user avatar
-1 votes
1 answer
533 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....
CPS's user avatar
  • 335
1 vote
1 answer
1k 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. ...
darthcoderUS's user avatar
0 votes
1 answer
617 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&...
Ram's user avatar
  • 1
0 votes
1 answer
431 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: ...
Corram's user avatar
  • 123
1 vote
1 answer
266 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 ...
mario ruiz's user avatar
0 votes
1 answer
492 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")
James 's user avatar
1 vote
1 answer
107 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 = ...
Vinícius Almeida's user avatar
1 vote
1 answer
337 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...
Teemo_smr's user avatar
  • 142
-1 votes
2 answers
587 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 ...
Arthur Almeida's user avatar
1 vote
1 answer
1k 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
118 views

Fetch fields from another objectApiName with Aura

I am doing the following code <lightning:recordEditForm recordId="{!v.recordId}" objectApiName="Opportunity"> <lightning:messages /> ...
Willy Kelly's user avatar
0 votes
1 answer
1k 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....
CPS's user avatar
  • 335
0 votes
1 answer
762 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 ...
Ben Harper's user avatar
0 votes
0 answers
261 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 ...
cpaesano's user avatar
4 votes
1 answer
10k 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, ...
Akash Jain's user avatar
-1 votes
1 answer
858 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.
developer's user avatar
1 vote
2 answers
4k views

Access Object property in APEX

Given the next code: Object deserializeResponse = JSON.deserializeUntyped(response); System.debug('DESERIALIZERESPONSE' + deserializeResponse); //DESERIALIZERESPONSE: {proposalIds=null, ...
CPS's user avatar
  • 335
0 votes
1 answer
1k 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 ...
Ian's user avatar
  • 9
1 vote
1 answer
2k 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....
ManiK's user avatar
  • 111
3 votes
1 answer
201 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 ...
Uwe Heim's user avatar
  • 28.3k

1
2 3 4 5 6