Questions tagged [compound-fields]
Compound fields are read-only and group together multiple elements of primitive data types, such as numbers or strings, to represent complex data types, e.g. an address or a location. Compound fields are an abstraction that can simplify application code that handles the values, leading to more concise, understandable code.
13
questions
5
votes
1answer
212 views
Apex compiler claims that “ShippingStateCode” does not exist, but the documentation says it is always present
Variable does not exist: ShippingStateCode
While trying to compile a code with the following variable defined, I'm getting the error above.
private static Map<String, Schema.SObjectField> ...
0
votes
2answers
48 views
NullPointer exception while accessing compound field Address
I'm working on trigger that will [after insert] get Street from ContactPointAddress object connected via lookup (Contact__c) and re-write MailingStreet field in Contact object ONLY if checkbox ...
2
votes
1answer
18 views
Do compound field components have the same access?
Suppose I run the following code:
String field1 = 'BillingCity';
String field2 = 'BillingState';
Boolean access1 = Schema.Account.getSObjectType().getDescribe().fields.getMap().get(field1).getDescribe(...
0
votes
1answer
33 views
Flow: Failed to insert record because Contact.Name not assigned
I have a Flow that prompts the user for the basic Contact details (First, Last, Title, etc.). I then Assign those values to be sContact record variable and of course attempt to INSERT the record. ...
0
votes
2answers
37 views
Field History Tracking on BillingAddress which is null
I need to do Field History Tracking on BillingCountryCode and BillingPostalCode on Account. I only can chose the field BillingAddress in the Tracking setup. But whereas BillingCountryCode and ...
0
votes
1answer
175 views
How do i identify the compound/complex fields in salesforce discover api objects
I am using Stitch to load data into an outside database and we keep seeing the following error:
Error syncing Opportunity: InvalidBatch : Failed to process query: FUNCTIONALITY_NOT_ENABLED: Selecting ...
1
vote
0answers
204 views
I want to use fields of custom compound Address field in Lightning component and controller
I have a custom object Address_book__c,lets say "A" which has differnt custom address fields like shipping_street__c and I have a lookup field from another custom object(say "B") on this "A" object. ...
2
votes
0answers
158 views
How to display errors on compound fields in Lightning Record Edit Form
My lightning:recordEditForm contains compound and regular (non-compound) fields. The regular fields display errors (field validation error, required field error, etc.) on the field. But, the compound ...
0
votes
1answer
151 views
Account sobject, Name field, compoundFieldName property
I'm new to SalesForce, and there's something I don't understand:
in the Account object, for the Name field, why is the compoundFieldName property defined to ... Name (the field is referring to itself ...
2
votes
1answer
3k views
Account Object BillingAddress
I am creating an Account object and am having trouble associating an Address record to the Billing Address.
This is working for creating an address of billing type:
sc_address = sf_client.create!('...
6
votes
1answer
1k views
Runtime error on a validation rule?
I encountered the strangest error today, and I wanted to make sure that this is a real thing and not just a silly mistake of mine.
I had a validation rule on Lead:
And(
isblank(Address),
$...
0
votes
1answer
568 views
Invalid field Address for SObject User
So, I'm trying to access the Address field on the User object in an after update Trigger but I keep getting the error when I try to update a User record.
Invalid field Address for SObject User
I ...
23
votes
4answers
2k views
How to know if a field is part of a compound address field and thus is not permissionable
I am working on a class that dynamically created FieldPermissions records for a permission set. This is working fine, except when it comes to standard compound address fields. When you attempt to ...