Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [object]

Referring to an instance in object orientated programming, but within force.com more likely refering to an entity or sObject.

2
votes
2answers
76 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
26 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
40 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
37 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
79 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
29 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
31 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
43 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
26 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
39 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
13 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
54 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
31 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
89 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
21 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
32 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
52 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
509 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
50 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
21 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
39 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
34 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
24 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
132 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
21 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
28 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
20 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
40 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
1k 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 ...
0
votes
1answer
118 views

Tell a force:lightningQuickAction what object I would like to work with

I want to create a custom lightning component which would allow me to create a record of a specific object. I decided to use quick action for this. I googled the documentation over here and found the ...
0
votes
1answer
276 views

lightning:quickActionAPI alternative to call from a custom lightning app

What is lightning:quickActionAPI alternative to call from a custom lightning app? When I try to call any method from the spec I am getting the following error: The API you used isn’t supported on ...
0
votes
0answers
23 views

Delete an object specific action

How could I delete an object specific action? Here is a screenshot in which you can see that there is no such option as Delete, only Edit on the right of the action list item. I have a System ...
0
votes
2answers
95 views

SOQL query to update object permission

I want to build the the query to update the object permissions to grant the read edit access of specific profile for the custom object. any idea how to do it
2
votes
1answer
116 views

Can't access to User Photo Url when Trigger

I have a problem when I trigger on the User object: I can't get the profile photo url. On this simple code I made a trigger to an User update and I send me by mail the fields FirstName LastName and ...
0
votes
2answers
79 views

How to get the value from object if having lookup reference (ID: a9l4C00000009NQZAY) in apex

I'm getting the JSON response by using the following code. LiveText__Conversation_Header__c val = LiveTextConversationMap.get(key); System.debug('Value One'+JSON.serialize(val.valueOne)); System....
0
votes
1answer
22 views

Set non Required Number field to nothing using Apex

Is it possible to set non Required Number field to nothing using Apex? If yes, than how? Because I can not just do the following: update new An_Object__c( A_Field__c = '' ); since it is ...
0
votes
1answer
421 views

Aura attribute of type List not accepting an array of objects

I would like to pass an array of objects from my js file to an aura attribute. I know the list contains values and is correct before I pass it to the aura component but the list is empty when I log ...
1
vote
1answer
84 views

Is there a way to query all fields on an object that have 'Default Value' ticked (and possibly filled in)?

Is there a way to query all fields on an object that have 'Default Value' ticked (and possibly filled in)? This should include custom fields.
0
votes
1answer
12 views

Add a hover text on a salesforce custom object tab

I have a Custom object which has a tab in Salesforce Classic Is there any way to add a description text/ hover text on the tab?
0
votes
0answers
17 views

Sync Products from Opportunity to another object

I would like to sync the products that are in any Opportunity to appear on another object when the Opportunity is "Closed Won". I am using this 3rd Party app which is for tracking projects. I ...
0
votes
1answer
659 views

How to create records of a custom object?

How to create records of a custom object? I can create a record of any standard object type (for example Account) by going to App Launcher and selecting the standard object type (for example Account)...
0
votes
1answer
73 views

Regenerate the salesforce custom object in Illuminate Cloud

How could I regenerate the salesforce custom object in Illuminate Cloud? I need to do that because there are some fields which were added to the object after it was generated by the Illuminate Cloud. ...
0
votes
0answers
22 views

SFDX Exports Ballooning in Size

I've got a scheduled job that pulls down a complete snapshot of some objects' data from Salesforce using the sfdx CLI. I store this data on S3; it's useful for backup purposes and some analysis. A ...
1
vote
0answers
36 views

Why I can not see the Email field for User object when using Object Manager?

I can not see the Email field on the object User while viewing it in Object Manager. Here is an attached screenshot(I sorted by field name and the email is missing): However if I am looking in the ...
0
votes
3answers
60 views

Give a User access to two Fields on an Object

This seems like an easy thing that i'm absolutely pulling my hair out over. I have a couple of back office workers that need access to edit Opportunities (two fields only) - Ive set up a page layout ...
0
votes
1answer
36 views

SOQL Query for Related Custom Objects

I'm currently trying to write a SOQL Query to pull all Accounts that have < 5 related Contact objects AND No related ts2__Placement__c objects (custom object). I have successfully been able to ...
5
votes
2answers
136 views

In Apex, can I detect if an Object is a Map, regardless of parameterized types?

When I declare a Map, I need to give the types, e.g.: Map<Id, SObject> sObjectByIdMap = new Map<Id, SObject>(); We can assign map to generic values as Objects: Object value = ...
0
votes
1answer
80 views

Convert Multile Objects to a single json

I have a list of map and list objects. These objects needs to be sent as json content in an http request. The objects are Map<String,String> leftFileParameters = new Map<String,String>()...