Questions tagged [apex]

Apex is a strongly typed, OOP language that allows to execute flow and transaction control statements on the Force.com platform server in conjunction with calls to the Force.com​ API. Not to be confused with Oracle Application Express (APEX) - use tag [oracle-apex] for Oracle APEX questions

Apex is a strongly typed, OOP language that allows to execute flow and transaction control statements on the Force.com platform server in conjunction with calls to the Force.com​ API.

There is synonym for this tag - .

Useful Links:

Apex Intro/Quick Start

2528 questions
0
votes
0 answers

How to test the REST endpoint that is given like this?

Example: curl https://api.signable.co.uk/v1/users/1000 -u d41d8cd98f00b204e9800998ecf8427e:x (refer: https://developer.signable.co.uk/v1/user/) How to test the endpoint using SoapUI 5.6.0? Or If someone can share how to test it in Apex/Salesforce,…
0
votes
1 answer

Internal Salesforce.com error when updating date field?

I'm getting Internal Salesforce.com error I've tracked it to when I'm calling update on a contact that updates the birthday field. Any idea why that may be happening? Here is the top function that is called from the trigger //Called from after…
Joey Dias
  • 7
  • 4
0
votes
1 answer

Refresh Record Page with Apex via a Visualforce Page

I want to create a button that effectively does the same thing as "ctrl r" After my end user finishes updating info in the visualforce page. I want to give them to option to click this button and it will refresh the entire record page which the…
0
votes
0 answers

Need help trying to access data from parent relationship

I'm tasked to retrieve data from an order payment line when a transaction happens on a related product and the field is_Enabled__c is marked true on the product, the product does not have a direct relationship with order payment line but it does…
0
votes
1 answer

How to write an Apex Test Class for Importing a CSV File?

Hello! I am unable to test the written apex class.. Could you help me with this task? Through the component, we transfer the ID of the CSV file sent to the server to the apex class, after which our apex class creates stations if there were none…
0
votes
1 answer

How to get the Opportunity split record from Order Object

there is a lookup relationship to the Opportunity object from the Order Object in my org. In every Opportunity there are 2 Opportunity split owners. I need to get the Opportunity Split owner who is not the Opportunity Owner. Can anyone please let me…
Akshay Vasu
  • 445
  • 1
  • 12
  • 33
0
votes
0 answers

Prettier working wrong with Salesforce APEX

Prettier working wrong with Salesforce APEX before formatting and after formatting. I need solution...
0
votes
1 answer

No more than one executeBatch can be called from within a testmethod

How to fix below error message in test class System.UnexpectedException: No more than one executeBatch can be called from within a test method. Please make sure the iterable returned from your start method matches the batch size,…
Carolyn Cordeiro
  • 1,525
  • 3
  • 11
  • 26
0
votes
2 answers

Sending Files in REST API via Apex

I am integrating with one of the provider who accepts a file to upload in their system. While doing so they require the file to be sent as multipart/form-data in the following format !! I tried configuring it as MultiPart form data using Base64…
Somya Tiwari
  • 145
  • 3
  • 8
0
votes
1 answer

How to disable options when radio/check is selected in LWC?

I'm new to Salesforce LWCs and wanted some help with this. So basically I want to figure out how to disable and check off the options for all the months when 'All' is selected. https://i.stack.imgur.com/3kt7L.png
Sadi
  • 5
  • 1
  • 2
0
votes
1 answer

System.ListException: List index out of bounds: 0: Class.SendQuoteEmail_Controller.send: line 62, column 1

My People are trying to use a custom button in order to send an Email from a VF Page. On click of send button, send method of the Controller Class is called to send an Email. public PageReference send() { try { …
0
votes
1 answer

Download XLSX File from Salesforce with Data Validation

Can anyone confirm if there is the possibility of downloading xlsx file with Data Validation Logic from Salesforce? I know we can download the xls file as XML Spreadsheet but I would like to know if we can do it using the XLSX file.
Aryama I
  • 77
  • 1
  • 10
0
votes
1 answer

What may be the reason why I get "Test ignored." message while running any test class in Apex?

Tests ignored: 14, passed: 0 Whenever I run any test class I get this type of messages: Test ignored. Test method AccountAddressHelperTest.testInvalidBillingCountry was never reported as completed. Trigger.AllOppLineItemTriggers: line 188, column…
0
votes
0 answers

How is myArray.size() implemented in Salesforce Apex? Does the method retrieve a value stored on the List.class object, or calculated at time of call?

Often when I'm writing a loop in Apex, i wonder if it's inefficient to call myArray.size() inside of a loop. My question is really: should I use myArray.size() inside the loop, or store myArray.Size() in an Integer variable before starting the loop…
0
votes
1 answer

Apex Batch, accessing global variable from an other class, getting null value

I have a simple batch with global variable as : global with sharing class sampleBatchApex implements Database.Batchable{ global List myList; global Database.QueryLocator start(Database.BatchableContext BC){ } …
AshBringer
  • 2,614
  • 2
  • 20
  • 42