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
1answer
44 views

Javascript Object Constructor in LWC

How would one go about creating a javascript object (not literal) in LWC? i understand the standard syntax of something like function bar(dog, cat) { this.dog = dog; this.cat = car; this....
0
votes
1answer
19 views

Using Junction object to display related list

Problem: I need to create a way to view two related fields on a given record between two different custom objects. I have looked up junction objects and it seems that this will be the best solution. ...
1
vote
1answer
55 views

Visual Studio Code debugger - how do I see content of object or map?

I've started using Visual Studio Code to run through my debug logs, but am not seeing the content of certain types of variables and am wondering whether I'm just missing something or whether this isn'...
0
votes
0answers
10 views

Error while querying ThirdPartyAccountLink object

I have an external authprovider which our external users will login to Salesforce using that. I want to know total count of active ones who logged into Salesforce using that SSO Provider name. below ...
0
votes
1answer
45 views

What is the leadChangeEvent object?

I've Googled this and found literally no documentation. What is the function of the leadChangeEvent object?
1
vote
1answer
244 views

How to Create an Apex class that returns Account objects

public class AccountUtils { public static void accountByState(){ List<Account> myAccounts = [SELECT Id, Name FROM Account]; } } Why my code doesn't complete the challenge ...
1
vote
1answer
65 views

Can you change set a Big Object?

I am trying to change set a big object from my developer sandbox to a full sandbox. I have seen here in the dev notes that it can be done via the metadata api. But nothing about changesets. So I ...
0
votes
1answer
30 views

Before Insert or Upsert list must not have two identically equal elements even after instantiating within for loop

I have created this following class and test class below. My question is in my class in Line X(commented line X) if i use that instead of Line Y I am receiving the above mentioned error. I put the ...
1
vote
1answer
35 views

User Object - Lastvieweddate & lastreferenceddate

Referring to the User object in particular, what exactly do the fields lastvieweddate and lastreferenceddate refer to? Is the lastvieweddate the last time the user viewed his/her own user information ...
0
votes
1answer
30 views

Why Salesforce has changeEvent version of object in org(even though it is not enabled)

I was browsing my org, and found that changeEvent type of object is available, whereas I did not have it enabled for any object. Doesn't it make available if and only if it is enabled(like share ...
0
votes
0answers
38 views

Where can I find the list view for queues

I am trying to create a package for migration. I am getting the error: "ListView - LiveChatTranscript.Queue1_LiveChatTranscript - The queue queue1 has not been setup to support the object: ...
0
votes
1answer
15 views

return to newly custom object created page [duplicate]

I am creating a new object with an apex class and a controller. My goal is when I call my method that create a new instance of that custom object, to redirect me to the page where the new object is. ...
0
votes
0answers
30 views

Convert object into a custom object

we parted our workflow into 4 different objects on salesforce. These are: Lead Opportunity Deal Exit Each of these objects includes different phases and I would like to create a new record in the ...
0
votes
0answers
12 views

Tooling API to fetch Duplicate Objects/Fields

I want to fetch duplicate object and field information before deploying my package to another org. Is there any pre build tool or tooling API reference that can resolve my problem?
-1
votes
1answer
26 views

custom object multiple creation

I have a visual page that create a custom object with : public JSONDeserialize (ApexPages.StandardSetController con) { control = new AKTARUS__c(); } at =[select account.ID from account where ...
0
votes
1answer
28 views

Required field missing account current object

I created a custom object, with a button to my visual page. When I click on my button, I get the good redirection. The problem is that I am trying to insert in my custom object (child of account) ...
0
votes
1answer
44 views

Flow and capturing Display Text on screen

I am attempting to build a guided actions list using flow on the leads object. What I've completed so far is: Assigning RecordID Getting Lead fields Screen that displays 3 questions (Display Text) &...
1
vote
0answers
46 views

write SFMC [Script activity] [SSJS] object Properties to a DE

i my objective is to write object properties(Folder, DE , etc) to a DE , how can i achieve this? here i tried, unsuccessfully, to write folderID to DE column ID , eventually i would like gather all ...
0
votes
1answer
45 views

How to get recordtypeid from generic object

I want to be able to pass an object, and recordtypelabel as string into a controller and get the recordtypeId. How do I achieve this. I currently get variable does not exist for the custom object. @...
0
votes
1answer
103 views

Get data from multi level json string

I am getting some data in response to my code which is a JSON string as: HTTPResponse res = {"id":2048,"extension_attributes":{"stock_item":{"stock_id":1}}} Now to retrieve data, I've done Map<...
2
votes
2answers
133 views

DX packaging with feature standard object?

So this is a weird scenario that I can't seem to find answers for. My team wants to push for the Salesforce DX Unlocked packaging strategy in a few months. First off, its annoying because I have to ...
0
votes
0answers
34 views

Data normalization in Salesforce Object in conjunction with Form Assembly?

I'm looking to leverage Form Assembly in Salesforce to develop an online form. I'm a newb to both Salesforce and Form Assembly, but I'm wondering if the system supports a traditional normalized data ...
0
votes
1answer
33 views

How to add Account (child) to Entity (parent) object

We have Entity object, which is the collection of all the Account. Now I want to change the Account And put it to another Entity object but I am getting some Error: Apex trigger onAccount caused ...
2
votes
2answers
367 views

Is it possible to dynamically set properties of an `Object` using Apex?

Background I would like to be able to dynamically set properties of an Object (not SObject). Given this class: public class Invoice { public String Ref { get; set; } } I would like to be able ...
0
votes
1answer
38 views

Invalid conversion from runtime type List<ANY> to a wrapper class

I have a Map like this: Map<String, Object> seeMap = (Map<String, Object>) instance; system.assert(seeMap.get('fish') != null, true); // this assert passes System.debug(seeMap.get('fish'))...
0
votes
0answers
43 views

How to store a collection type (set, map, list) on a object?

I have a visual-force page which displays an Apex form with some dynamic number of input text fields that I would like to save on the Opportunity object. Is the easiest way to serialize them as JSON ...
0
votes
1answer
286 views

How to get value from object Json.deserialize

I have deserialized a JSON object as follows: MyObjects MyA = (MyObjects) JSON.deserialize(req.requestBody.toString(),MyObjects.class); When I do MyA.get('Accounts') my result is as follows ({...
1
vote
1answer
172 views

ERROR: No AuthInfo found for name [object Object]

Ad the title described, I have the following error: ERROR: No AuthInfo found for name [object Object]. What i did was to install a whole new clean visual studio code, with the related salesforce ...
0
votes
1answer
94 views

How to check account is lookup of how many object

How i can check if account is lookup in any other objects in salesforce.
1
vote
1answer
68 views

How can we convert XML to Native Objects when the XML includes “Date” and “Time” as elements?

I'm currently trying to determine whether we can replace our company's convoluted XML processing solution (based on XPath) with one based on @SfdcFox's XmlToJson solution. Unfortunately, the XML we ...
0
votes
1answer
163 views

Get Object id using rest api

Is ther any unique id available for object. If yes, How to get a object's unique id ie.object_id using rest api.
0
votes
1answer
32 views

How to provide access in bulk

I have created a custom object with over 50 custom fields but only system administrators have access to all the fields now is there any way I can provide the access to other profiles at once I can ...
0
votes
1answer
84 views

Setting a field value to the same object with a Trigger

I have two fields. Cost_price__c & Previous_book_value__c Currently, I use a Trigger on my Asset object to create a bunch of other objects and related records. However, I need to map the field ...
0
votes
2answers
186 views

Updating a custom field with a default value of 0

I have created a custom field to track agent replies per Case, but the default value I have set is 0 (obviously) and the workflow rule I created to update this field only triggers when the agent ...
0
votes
1answer
68 views

Any pattern for merging fields of multiple objects of same type

I have a class called Texttypes and TextRoller as shown below: public class TextTypes { List<String> goodTexts = new List<String>(); List<String> badTexts = new List<...
1
vote
2answers
156 views

Force.com Project in Eclipse: OutOfMemoryError: Java Heap Space

I'm trying to load in one custom object using Force.com IDE in Eclipse, but I keep getting this error. Is there any way to increase the memory usage or prevent this error? Thanks,
0
votes
1answer
22 views

Best Practice for Canine profile

I work for a nonprofit that trains service dogs for Veteran's with PTSD and we just started using salesforce. I am the admin, and still learning as I go... I am struggling with the best practice to ...
1
vote
1answer
65 views

What objects cannot be masters in master detail relationships?

I have the following objects Training_Group_Criteria__c and Training_Group_Rule__c. I am trying to create a master-detail field to make Training_Group_Rule__c a detail of Training_Group_Criteria__c. ...
0
votes
1answer
33 views

How to carry forward a certain Value of Record to the next record without an APEX code

I have an instance of an Object, which has the variables type = x, number_of_exams = 2, previous_no_of_exams = 0. In the next instance of the object, of the same type = x, I want the ...
1
vote
1answer
240 views

Can't set a picklist default value when creating Person Account, because Person Account not visible

a bit long but I'm a bit stuck. I have Person Accounts enabled. I'd like to set a picklist default value when someone chooses to create a new Person Account. The picklist is not a controlling field ...
2
votes
2answers
881 views

The length of the first and last names

There is a Name field of type Name in Contact object. It consists of FirstName and LastName. I can query those two fields using Apex. Even though I cannot find any proofs in Object Manager of that, I ...
0
votes
1answer
161 views

Adding new field on Process Instance object

How can I add/create a new filed on 'Process Instance' object? can we add it or not?
0
votes
1answer
28 views

Edit field set description

Is it possible to edit a field set description? When I go to Field Sets -> (pick a field set) Edit I am able to edit only fields in the Field Sets, but not a description.
-1
votes
1answer
58 views

Object referencing a lookup object field is null

When creating the query for the field CPQ_Sort_Decimal__c in Product2 the data is populated correctly (Example: 0.125). When making the following query for SBQQ__ConfiguredSKU__r.CPQ_Sort_Decimal__c ...
0
votes
1answer
18 views

Do not see a few of the Contact`s fields in Setup

I run the following apex: SObjectType contactType = Schema.getGlobalDescribe().get('Contact'); Map<String, Schema.SObjectField> allContactFields = contactType.getDescribe().fields.getMap(); ...
1
vote
1answer
171 views

Can I have more than 2 previews in a lookup field?

Asset Field _ 2 previews only In this example I'm seeing 2 fields that are part of my Asset object field. I'm looking for a way to increase the fields I can see in the preview to 3 fields. Any ...
0
votes
1answer
32 views

Is data stored in an external object in Salesforce?

I am currently consuming a service from Mulesoft into Salesforce. The requirement is that the data coming will not be stored anywhere in Salesforce. I would like to know whether an external object in ...
0
votes
2answers
272 views

Working with a generic object (not sObject)

I have a JSON string that I'm working with and want to deserialize and reference in Apex. The Problem is that the structure of the JSON is somewhat flexible. For Example, it could look like: { ...
0
votes
1answer
160 views

Is it possible to assign different page layouts to an object on different apps of one org?

I have a quick question please. This is the situation: I am connected to an org. Let's assume this org have 2 apps using the same object. Is it possible to use a different layout for that object ...
0
votes
0answers
29 views

Issue with the JSON object serialize [duplicate]

I am retrieving the list of all the fields and trying to serialize. Using the code snippet below allfieldNames contains around 400 fields but Data >>> contains information related to only 100 random ...