Questions tagged [custom-field]

A custom field can be added to standard objects that support custom fields and custom objects to extend the capabilities of Salesforce to suit the specific needs of an organization. Custom fields can be accessed in code by referring to them by their API Name which is their specified Field Name value suffixed with an __c.

200 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
1answer
721 views

How can I identify a deprecated managed package custom field via the APIs?

I'm in the process of doing some development in a random1 client org where they want an integration with another parties managed package. Part of this is to run SOQL queries against custom objects ...
3
votes
0answers
1k views

Is there a way to create an OpenAPI / Swagger spec for my Salesforce Account?

I've been using the Saleforce REST API for a while and I'm interested in using an OpenAPI / Swagger spec to auto-generate a SDK using OpenAPI Generator and Swagger Codegen. Is there a way to get an ...
3
votes
0answers
1k views

What is the reason behind not being able to make a custom lookup field (looking up Standard Object) a mandatory field?

Not sure why we cannot make a custom lookup field a mandatory field, when the looking up object is a standard SObject. e.g. Product Holder (Custom obj) has Component lookup field looking up Product2. ...
3
votes
1answer
95 views

Is addition of Custom field in Custom object possible using MetaData API

After creation of a Custom object metadata with createMetadata(...), I want to add new lookup Custom Field to it additionally (not at the time of creation). By using updateMetadata(...) method, I ...
3
votes
0answers
340 views

How to convert text field to encrypted when referenced in multiple places? New approach?

We have a text field that is referenced several hundred times in all code, validation rules, WFRs, etc that we'd like to encrypt now. In order to do that, seems like we need to delete it and recreate ...
3
votes
1answer
93 views

Change sObject field type and deploy using API

In this thread, there is a discussion about modifying a custom sObject's type. When I try to change the field's type in the Salesforce UI, I can see an error message with some references to the code. ...
3
votes
0answers
150 views

“invalid domain” creating a Master-Detail field on a junction object

I was attempting to set up a Junction Object in an organization with Person Accounts enabled to link Business Accounts with Person Accounts. I set up the Account Master-Detail on the custom junction ...
2
votes
1answer
126 views

SOQL Profile Id Bug Introduced in Summer 2019 Release

We have discovered SOQL Profile Id Bug Introduced in Summer 2019 Release. To reproduce this, we need to have either a Custom Object or Custom metadata with Custom Field of Text field which contains ...
2
votes
0answers
687 views

No such column on sobject error occurring on sObject that does have that column

When attempting to update a custom object using SF default API endpoints (/services/data/v43.0/sobjects/MyCustomObject__c/customId__c/4003) I am getting a weird error telling me that a column doesn't ...
2
votes
0answers
958 views

Cannot modify managed object: state=released: newValue='false', oldValue='true'

has anyone encountered and solved a sfdx force:mdapi:deploy error about changing a field from released to non-released? I'm getting this error when deploying to the packaging org. We've been working ...
2
votes
0answers
134 views

How to create report, where the amounts are cumulated into the next month

I've been looking at this problem for a while now, and I haven't found a solution on any of the other salesforce forums. I want to have a report with a column chart, which does the following: we ...
2
votes
0answers
465 views

Do custom fields on standard objects in managed package count towards the total limits for number of custom fields in an org?

I have read a lot of questions mainly this one : Custom Field Limits For Managed Packages) posted here but still not able to find a clear answer. I have a 'security verified' app exchange package ...
2
votes
1answer
622 views

How to Include Profile Setting into a package

1 . We have package where we have created custom object. 2 . This object needs to be accessed and displayed to standard users in managed package. 3. We have create custom profile which has access to ...
2
votes
0answers
55 views

Is it possible to have a field named `NameSpace__c__c`

I've been having a somewhat strange issue here when trying to create a custom field. With the following deployment, I ended up with a field that looks like it's missing the ending __c: <fields&...
2
votes
0answers
261 views

Bug? FieldDefinition is Createable via Tooling API

I found this question very interesting: Programmatically Determine Which Objects Allow Lookup References to Them? In my naiveté, I thought perhaps this question could be answered by using the Tooling ...
2
votes
0answers
34 views

Junction object field has weird name in WSDL

Lets say i have objects Event and Contact. Between these two objects i have created junction object. Checking WSDL whats the name of field on Event for this junction reference I find out, that it is ...
2
votes
1answer
23 views

Are Lead Fields Static after conversion to Contacts?

I'm currently trying to build a few custom attributes within the Lead object so that the following happens: Year Entered for Job is a text field Years since entering the work field is a number field ...
2
votes
0answers
48 views

Generate a list of field types assiged to record types

Im a bit new to Salesforce so maybe this is trivial or maybe im incorrect about some stuff below My end goal here is to provide a report of fields that are available via Salesforce Web (Classic) and ...
2
votes
0answers
100 views

APEX Triggers? Creating Reminders? Updating custom fields dynamically

When a custom field for my Lead changes (the user changes a value in a picklist) and saves the Lead, I want to: update another field on the Lead object with a value (i.e., the user selects wait 2 ...
2
votes
0answers
241 views

EMERGENCY I just deployed a change set and now one field has lost all data in production what do I do?

I have an agency field in accounts and for some reason after some recent updates the field seems to be blank for all accounts. The field was not included in the change set and was not dependent on ...
2
votes
0answers
2k views

Using an inputField value in a custom controller

I have a custom controller which contains a search function. It is used to search through my custom tree object for a tree based on the users input. I previously had a select list to list the ...
2
votes
0answers
63 views

Random data in custom field - what might be the cause

Our client's organization is having an issue with a custom comment field. After approving a report, some dodge data might be inserted into that field. The dodge data is tagged code which looks like ...
2
votes
2answers
483 views

Picklist custom field with grouped values?

we have a picklist custom field for Opportunity objects where we have all the countries where my company works. Would it be possible to group the values in this field by region or continent? For ...
2
votes
0answers
296 views

Create Geolocation field type using java code

I am using com.sforce.soap.metadata.FieldType and com.sforce.soap.metadata.CustomField classes to create custom fields using java code. Now I want to create a field which is type of geolocation in ...
2
votes
1answer
1k views

Is it possible to retrieve list of hidden fields of custom object?

Background. My manager asked me to retrieve all currency fields for many custom objects. Amongst them there was at least one object with many fields which have field access Hidden. Let's call that ...
2
votes
1answer
874 views

How to find the EntityID for my custom object

I created my custom object and tried to access but there I have to provide entity ID but I dont know from where I should get the entity id for my custom object.
1
vote
1answer
39 views

Add radio button or check box in approval layout page

is it possible if I want to put a radio button or check box in this page? I want to ask user(manager) either it is a final approval or not. If it is possible, may I know how?
1
vote
0answers
18 views

Which permissions are needed to access “CustomField” object?

We are using the metadata API to access field metadata such as description, data type, default value etc. This is for standard objects but on custom fields e.g.: SELECT Id, Metadata, TableEnumOrId ...
1
vote
1answer
346 views

Custom field reference problem in profileSearchLayouts metadata

In a sandbox I've created a custom object with some fields. In Lightning, I've created some Search Layouts for different community profiles. I've noticed that the metadata looks like this: <...
1
vote
1answer
135 views

Add Custom Fields after a Managed Package is Released

Based on the following I understand that new custom fields of an existing custom object aren't available to users after Pushing a Managed Packaged Assigning Access to New Components and Fields From ...
1
vote
1answer
253 views

How to include custom field in a standard object using package manager?

I am trying to turn an app into an unmanaged package using the package manager's wizard in setup. The app has some custom fields within standard objects that I am trying to include in the unmanaged ...
1
vote
2answers
137 views

Update fieldPermissions with metadata api of Salesforce

I try to update the permissions on a field created from the API so that it is visible and usable. so I do this via the salesforce metadata API. responses = client.call(:update_metadata, message_tag: ...
1
vote
0answers
523 views

Lightning component String.length not the same as what the custom field gives as length

I'm working on a lightning component which stores it's data to a Salesforce Long Text Area custom field of size 600 on the Account object. In the component, we have an html text area, upon each keyup, ...
1
vote
0answers
38 views

Custom field population on new Contact

I'm having some issues creating a new contact with apex code. Basically whats happening is that I have a bunch of values getting passed from a lightning component, which should populate in to a new ...
1
vote
0answers
29 views

Experiment : Test class will still read deleted field although it has been deleted?

This is new finding for me and I really want to know if this happen to you or only me. There is a custom field with text area created with more than 255 character. It created successfully although ...
1
vote
0answers
603 views

NullPointer exception on field that is retrieved on the query

During a test, a case is inserted, its owner is a queue, and a custom field, which references another custom object, is left blank on purpose (for the test). When the code is run, there's a condition ...
1
vote
0answers
45 views

Create Views with Salesforce API

Scenario: As of now i have created a custom tab with custom fields say(name and email). The custom tab was created with the primary key to be an auto-number one {0000} and hence when the tab is loaded ...
1
vote
0answers
51 views

Need to add field in apex class email template - not working

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 ...
1
vote
0answers
95 views

Inserting an account using REST API when custom required fields have been added by the client

We have an application that creates accounts on Salesforce using REST API populating them with data from an external database. The problem we have encountered is that if the client (the owner of the ...
1
vote
1answer
47 views

salesforce field mapping

I have a table (Detail) in SQL and creating a custom object in Salesforce (Detail__c). Below are the fields in SQL Detail Table: Will they be a picklist? But how can I relate Detail_Acc_no, ...
1
vote
0answers
44 views

Custom URL field with Unique constraint deployment issue

I have custom field URL__c in my sandbox that is of Type: URL and with a unique constraint. This field was previously a Text type field when I put the unique constraint to this field and later I ...
1
vote
0answers
112 views

Getting Custom Fields of Object with Javascript Button

I have a custom Object called Command (Command__c) containing the custom fields Date (Date) and Email Template (Linked to the Object Email Template below) I also have a custom object Email Template (...
1
vote
0answers
358 views

How to retrieve data using METADATA API and to change profile settings

What is the metadata endpoint url to get retrieve custom field/object/tab data? For ex, I have been using this url - https://<instance_url>/services/Soap/m/28.0 to create custom objects. ...
1
vote
1answer
41 views

How to identify and redirect correct callback in managed pack containing connected app

Our applications has different domain subdomain for each. Lets say our domain is *.example.com We have client1.example.com client2.example.com so on so forth We want to package connected app. ...
1
vote
1answer
81 views

Computing A Custom Number Field Based on a Criteria Using Apex Class

How can I get the sum of three custom number field values from three different custom objects using a certain criteria? Here are the custom objects with the corresponding fields: ObjectA__c : Id, ...
1
vote
1answer
50 views

Is there a way to report when a field was last populated?

I want to see if a field is obsolete, meaning if it is not populated with data in the last six months, I would like to hide it from the page layout. So, Is there a way where I can run a report or ...
1
vote
0answers
428 views

Force.com sites Visualforce page does not update field in the Production side

I have a Visualforce page on a force.com site which is suppose to update a custom field (type text) Field1__c of a custom object Custom1__c. It works perfectly on Sandbox, but when I deployed it to ...
1
vote
2answers
691 views

Inserting an object with not writable field

I've this class that I need to test it: public class A800ExpiredClientReportV2 { Public ID quotID {get;set;} Public List<Quotation__c> quotList {set;get;} Public ...
1
vote
1answer
321 views

how to mass update to custom fields (which is in custom object)description

Wondering how to update custom fields description(which is in custom objects) as a bulk update. They are around 500 in a Excel file. Is there any mass update we can do instead of doing it manually. ...
1
vote
0answers
16 views

Custom buttons to be able to track Logins and Log Out times

I´m pretty new to Salesforce, and I´ve been looking all over the forums on how to do it. I´ve learned quite a bit on what it´s possible, and what´s not. I want to be able to keep a record on when ...