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.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

Creating a lookup relationship between two standard objects using a custom field

We are using the standard Salesforce Account and Contact objects and are populating records via the Bulk API (using jsforce). Both Account and Contact have a custom field external_id__c, which is the ...
0
votes
1answer
14 views

Insufficient Privileges while adding field to a custom object

My user is with System Administrator profile in the Org I am trying to add a field to a custom object but getting Insufficient Privileges error. Like this: System Administrator has Administrative ...
0
votes
1answer
15 views

Multi Picklist Custom Formula Field Get First Group

On the contact object, a contact can be grouped into multiple groups through a native multi-picklist field. I want a custom field that should pick out the first group in the group field. For example, ...
0
votes
0answers
56 views

Sort checked row

I have a tab where i save my values in first column. And when I check checkbox I want to copy value from first column then sort it and save in second column. How to implement sort? Any suggestions ...
0
votes
2answers
35 views

To create a custom field

Is it possible to implement the following requirement in declarative way? One custom field Ability to enter URL of size greater than 500 characters and displays only first 50 characters. Editable ...
0
votes
0answers
16 views

I'm having trouble. I would like if the test field is selected. Test2 is search-enabled

<c:customLookup aura:id="teste" objectAPIName="teste" IconName="custom:custom36" label="teste" selectedRecord="{!v.teste.Id}" /> I tried to use the onLookupChange of the lookup itself <c:...
0
votes
1answer
18 views

Changing field type from Checkbox to Formula(Checkbox)

I have read that change in field type would result in data loss. I have a custom field which is of type checkbox and has around 200 records. Now, I need to change this field data type to formula (...
0
votes
2answers
15 views

Custom Fields: Access other data assoc. with Object other than its fields

I want to make a custom field for Salesforce's Contact object; I would like to access information that can be found on the Contact object page, but are NOT fields. Notice in the picture, I want to ...
0
votes
1answer
22 views

How To Find Out What Was The Last Updated Field On A Lead Without History Tracking

A managed package updated a field on the Lead object but that field is not in the history tracking. Is there an easy way to find out what field was updated exactly? The Lead has 400+ custom fields ...
1
vote
1answer
22 views

Custom render field for lightning

Scenario I've have multiple images categorised like before, after, extra images. And I want to display them together in Record page, ofc with customisation like in HTML grid something as I need some ...
0
votes
1answer
20 views

Copy opportunity information to custom object using a button [closed]

I'm trying to create a new custom object when an opportunity is closed won. For that I chose to use a button in the opportunity's page layout to create a new custom record. I want to fill ...
2
votes
1answer
112 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 ...
0
votes
0answers
42 views

Days in this month and days in this year formulas

I have a formulas of days in this month and this year with start and finish dates. My formula counts the number of days in this month/year that fall in a given interval (between Start Date and Close ...
-2
votes
2answers
56 views

How can I simplify the formula to avoid limit?

I'm getting "Maximum size is 5,000 characters" for formula, when trying to do this: ((Account.Cost_per_day__c + IF( (AND(Cleaning__c = TRUE, Parking__c = TRUE)), (VALUE(TEXT(Number_of_cleaning__c)...
1
vote
2answers
178 views

The number of days until the end of the month

For example, I have Start Date 29.05.2019, and Finish Date 4.06.2019. I have a formula field which displays 6 days between these 2 dates. But how can I count the number of days from Start Date until ...
0
votes
1answer
119 views

lightning:inputField is not rendering, saying the request is missing the field data when it is not

I am trying to display a list of date ranges based on an objects start and end dates using a lightning component. When I open it in a visualforce page as part of a set of nested components, it will ...
2
votes
1answer
26 views

Prepopulate user lookup fields with current user, with additional criterias

I have a custom object that we use to log client visits, where both a Sales Rep & a Support Engineer can take part. I have 2 custom lookup fields on this object, one is called "Sales Rep", while ...
1
vote
0answers
27 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 ...
0
votes
0answers
17 views

Richtext Field contains GIF image

I have richtext field(crich__c) that contains gif image in salesforce. When created an email template and merge my richtextfield it doesnt show.
0
votes
1answer
29 views

AutoNumber based on Fiscal Year

I have Autonumber (fiscal year). For example Jan 1 2018. My AutoNumber field will be 180000 . For next Year Jan 1 2019. my autonunber should be 190000.. is this possible ? Thanks for the help
0
votes
0answers
30 views

Don't get complete set of custom/standard fields in sandbox just after creating it with permission to all objects

I just create sandbox in Enterprise Edition but don't get full/complete set of fields for Opportunity.I made a copy from production org. Any assistance will be highly appreciated.
2
votes
1answer
31 views

How to Change a Custom Field to a Roll-up/Formula Field

I have a custom field on the Account object that had been getting populated by an external data source. We are making changes and will no longer be populating the field from the data source but are ...
0
votes
0answers
57 views

Opportunity Line Item's Unit Price(quoted price) field update from related Product custom field

I have a requirement to update the Unit price(quoted Price) field of an Opportunity Line Item from the related Product Object custom field. And I need to perform this update when I am creating the ...
0
votes
1answer
34 views

List all Custom Fields that exists in the org and relate then with the appropriate objects [closed]

I need to list in a visualforce page all Custom Fields existing in my org and them relate then with the Standard or Custom Objects. For example: Example_Object__c Example_Field__c If i select the ...
1
vote
1answer
55 views

Create lookup field that can relate to two types of objects

I have a custom object, that I would like to relate to the built-in Accounts and Opportunities objects. Sometimes this custom object can be related to an Account, sometimes it can be related to an ...
1
vote
2answers
26 views

Field not available in list from SOQL

I have a custom field that is populated by integration, and in certain cases a currency field will end up as blank. It will not evaluate to null or 0. SQL Execute from dev console log: 13:26:53:006 ...
0
votes
1answer
82 views

Time field based on TimeZone

Is Salesforce time field dependant on timezone. Is the time field value change based on TimeZone.
0
votes
1answer
20 views

how to show picklist values in different languages dependent on the current user’s country?

I want to show picklist values in the language of the logged in user. (don't want to use VF pages)
2
votes
1answer
134 views

Error in a formula field

I have a requirement where I need to populate records where a criteria is true. The criteria is the users must have joined in between Jul,2018 to May,2019. I thought I can achieve this using a ...
2
votes
1answer
151 views

How to access existing custom fields from SFDX-managed unlocked package?

Long ago, I added a field Type__c to Contact on our production org. Now, I'm using SFDX to develop an unlocked package with code that refers to that custom field, like someContact.Type__c = 'Student'. ...
0
votes
0answers
19 views

Picklist value added to Inactive values list if i create new value from rest API?

I have one pick-list field called type if i gave new value to type pick-list field it's creating the value in field but it is in active.I am creating record Throw REST API.How to make this active ...
1
vote
1answer
86 views

Salesforce DX referring to Global picklist “CustomField not found.”

I have successfully deployed a Global Picklist "State" in scratch Org. Following deployment I am referring the global picklist in a custom field. I am get the following deployment error API Name : ...
1
vote
1answer
47 views

Insert or Update Custom Metadata Type Boolean Field

How, or can we, update Custom Metadata Types that have a checkbox field using the MDAPI? When I set it to '1' or 'true' in both instances it says value not of required type: <?xml version="...
0
votes
0answers
24 views

Can I Stamp my Service Appointment Status?

I'm looking to capture via the process builder when a Service Appointment status has been changed, and I want to store this timestamp in a custom field from a custom object for each one of the ...
1
vote
2answers
46 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: ...
0
votes
2answers
51 views

Does Deleting a Custom Field Remove It From All Page Layouts?

Does Deleting a Custom Field Remove It From All Page Layouts? We have around 90 Case Page-layouts. We were recently told to remove a field from all of them. For best practices, we want to remove the ...
0
votes
1answer
20 views

Salesforce Confused on what object it is looking for

In our environment, we have two custom Course objects, one's identifier is Course__c the other is hed__Course__c. (Don't ask me why, it's just how it is.) The one I am focused on is Course__c. ...
0
votes
1answer
28 views

Why does number field comes as Decimal type even if Decimal places is 0 in field definition

A very basic question. We define a number type of custom field and try to fetch it in apex. After this suppose I write following code : Set<Integer> validCounts= new Set<Integer>{1,3,6,9}...
6
votes
2answers
232 views

Not all records returned in SOQL Query

I have a query that I'm using to export data: SELECT c.Id, c.SystemModstamp, ... FROM Contact c WHERE c.SystemModstamp > start AND c.SystemModstamp < end AND c.Id > string ORDER BY c.Id ASC ...
0
votes
1answer
20 views

Add hidden form field for lead to account relationship using Web-To-Lead

I have a custom field on my Lead object that specifies an account for the lead referral. I would like to provide the ID for this account on Web-To-Lead form submission but it does not appear to work. ...
0
votes
0answers
123 views

SFDX how to retrieve custom picklist with force CLI

when I push the source to my scratch org I get the following message "You must specify either picklist, globalPicklist, or valueSet." is there additional element to add into the package.XML for ...
2
votes
0answers
163 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 ...
0
votes
1answer
24 views

How can I lookup an account ID for a Case using a field I am importing that is not the account name?

I have to import a history of cases in Service Cloud and, sadly, the account names I already have in Sales Cloud and the ones in the import don't match. I have a Client ID though in the Account object ...
1
vote
1answer
51 views

Formula field to calculate the percentage of days remaining

I have a custom formula field where I need to calculate the amount of days in the year * 100 \ 365 = % of days remaining. I've created the following formula: ROUND((365 - (CloseDate - DATE(YEAR(...
0
votes
1answer
160 views

Hyperlink in a long text Area

I have a long text area field on an object. There is a link present for each record on that field which works fine at the record level but does work on reports. I want to make the link clickable in ...
0
votes
1answer
56 views

Cannot edit custom field

I cannot edit a custom made field even though I have made it visible and editable to my current user profile. If you have a look at the first image here, it clearly shows the Word Count Limit field to ...
3
votes
2answers
163 views

sfdx - second generation packages - push custom fields fails silently

I have setup three sfdx second gen packages, each with their own sub folder in my umbrella project folder. Package 1 defines some Custom Objects. Package 2 adds some custom fields to the custom ...
0
votes
2answers
73 views

List all standard and custom fields for a given object (standard/custom object)

is there a way to list all the fields both standard and custom for a given object. tooling api - customfield gives only list of custom fields but not the standard fields.
1
vote
1answer
65 views

Deploying a custom Email field set to Unique fails

I'm trying to create a unique email constraint on our Contact object, the general consensus seems to be to create a new, unique custom field, and copy the Email field into it via a trigger or workflow....
1
vote
1answer
38 views

How can I know how many fields are allowed to create in custom object via Metadata API?

I am trying to create sql table structure in salesforce as an object. In salesforce, there is a field limitation that allows only creation of 100 fields (I am using PE). My SQL table contains more ...