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
23 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
76 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
28 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
28 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
17 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
28 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
26 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
28 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
28 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
35 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
29 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
53 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
88 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
24 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
238 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
36 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
42 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
195 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
144 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
65 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
61 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
105 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
31 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
65 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
0answers
14 views

Unable to find records (account, contact & case) with assigned topics

My client is looking for a way to easily categorize accounts, contacts & cases by providing tags for them. I was hoping topics would be a good solution for this. There is however limited ...
0
votes
2answers
129 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
50 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
135 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
42 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
175 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
718 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
120 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
25 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
57 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
17 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
109 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
29 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
248 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
89 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 ...
0
votes
1answer
21 views

Selecting a hierarchy column from the same object

I have a query I've written for the Organization/Account object SELECT ID, Name, BillingStreet, BillingCity, BillingState, BillingPostalCode, County__c, Phone, ParentId FROM Account This ...
0
votes
1answer
88 views

Control Picklist value for a specific user

Is it possisble to control picklist values to specific user..? Eg: If I add new picklist value to Account Type, that value should be available only for a specific user
-2
votes
3answers
3k views

Pass a JavaScript object to Apex controller in lightning

Is it possible to pass a JavaScript object to Apex controller in lightning? Here is what I tried: @AuraEnabled public static void changeProgram(Object info) { update new ...