Questions tagged [apex]
Questions relating to Apex, the native programming language for the Force.com platform. Use it for general questions on syntax, errors, constructs, and rules of use. Most questions should include a code *excerpt* to help answerers understand specifically what has gone wrong or why you need help.
37,298 questions
0 votes
1 answer
28 views
DML update is not committing date if we throw exception
We are using federated SSO to authenticate users logging into our community portal. As part of the authentication process, we receive an attribute named "alumn" or "member" in a ...
0 votes
1 answer
29 views
Is it okay to call both domain & service layer from trigger handlers?
I’m implementing the fflib-style Apex Enterprise Patterns in my org and need some clarity on how trigger handlers should interact with the Domain and Service layers. My current understanding is: ...
0 votes
0 answers
40 views
Deploy new field on a object
I am trying to create a new field in Apex and write it in the object, but I receive this error: package.xml (Line: null: Column: null): An object 'Test_Obect__c' of type CustomObject was named in ...
0 votes
1 answer
34 views
lightning-input-field date locale issue in LWC salesforce
I'm using the code below to display an input field of DateTime data type. <lightning-record-edit-form object-api-name="Contact" onsubmit={handleSubmit}> <lightning-input-field field-...
0 votes
0 answers
36 views
How to fix Self Registration form with SSO?
I’ve configured SSO with Salesforce as the Identity Provider (IdP) and Raisely as the Service Provider (SP). The SSO setup is for a Salesforce Experience Cloud (Community) site. Logging in with an ...
0 votes
0 answers
58 views
Use External Id to populate Lookup when creating SObject Record from LWC
So I want to be able to leverage the ability to populate lookup fields via an External Id when creating a record from LWC. Typically this is how one would do that in Apex: Child_Object__c c = new ...
0 votes
0 answers
19 views
Can't DML nor Query Volunteer Management object in Apex
I am working in a trial org mapping some data into Job Position, Volunteer Initiative, Location... I can query them in the developer console, but using the same user, I cannot DML nor Query them in ...
0 votes
1 answer
45 views
Parsing of JSON on a File
I have a requirement wherein there is a .txt file containing a JSON. I need to parse this JSON in some way to achieve a business requirement. The JSON on the file is of around 5000-8000 lines, the ...