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
2 answers

Apex (Salesforce) read json from response and store it in a string variable

I am trying to hit a API endpoint which is responding something like below when I am calling response.getBody() { "oktaToken":…
0
votes
1 answer

What is meaning/significance of +1 in requestURI.lastIndexOf('/')+1) of Salesforce REST APEX Code

What is meaning/significance of +1 in below Salesforce REST APEX Code @HttpPatch global static ID updateCaseFields() { RestRequest request = RestContext.request; String caseId =…
Carolyn Cordeiro
  • 1,525
  • 3
  • 11
  • 26
0
votes
1 answer

SOQL Query for getting the Application name of a Particular Tab

I would like to get the Application name of a specific sObject. For example: I have a custom object called Candidate__c. How to get the Application name of Candidate__c programmatically? I am open to any approach like using Schema Namespace as…
0
votes
1 answer

Is it possible to execute non-test Apex code directly?

I've slung alot of code in multiple languages but am new to Salesforce and Apex. I see Apex is very much like Java. I see where one can execute @IsTest methods within a @IsTest Apex class. But how does one execute non-test code directly? Or must one…
code_warrior
  • 77
  • 10
0
votes
0 answers

Error instantiating a rule: class not found exception

Am trying do a PMD analysis with a custom rule created. But while doing the same I am getting class not found exception even when class file is present in mentioned location. Rule xml:
priya
  • 391
  • 1
  • 5
  • 24
0
votes
1 answer

Ora 06502 for apex_web_service.g_request_headers bearer token PLSQL

I have a hard time to make a GET request form a server with Bearer token. To make a request I made a function which is down below and I'm getting error Ora-06512 in the line with bearer. Sending a request from postman is not a problem I recive my…
Jovid Nurov
  • 21
  • 1
  • 7
0
votes
0 answers

how to change code used in my sql to oci?

I am working in a project which is perfectly fine while using mysql but i need to do it using oci. This is a short code where i am having problem. The problem is $stmt->execute(['code'=>$_GET['code'], 'id'=>$_GET['user']]);. What must be written…
Aaheana
  • 1
  • 5
0
votes
1 answer

integrating applications with Sage People (HRIS/ HRMS)

I have been asked to develope integrations solution for Sage People application which is a HRMS tool build on Salesforce platform. Integration capabilities of Sage People are poorly documentation and limited to file based integrations only . Sage…
0
votes
0 answers

Apex: Get public link of a file uploaded to Google drive service account

I was able to upload an image file to google drive (Service Account) using google drive API. In return of the post, I got a filId from google. Uploaded file to drive I then used this fileId to create public read-only permission on the file. added…
0
votes
1 answer

How to pass width to apexChart container via document.write (pdf printing)?

everyone! I am trying to configure a PDF output of HTML page. On this page I have an ApexChart, which has a width of '100%' (in JS options). var options = { chart: { width:'100%', type: "line", animations: { enabled: false …
rickshinova
  • 109
  • 6
0
votes
2 answers

Salesforce Scheduled Apex Class - Method doesn't exist

i'm trying to write an apex class that checks a chekbox, on a custom object when a specific Date is less than 30 days from todays date. The class is supposed to run once a week to constantly check for Records that are supposed to be updated. I have…
0
votes
1 answer

How to create custom URL in apex to get Json response from third party application

I am sending some perameters to the third party application using rest api In one of the perameter I am sending A URL, This URL will use by third party application to send a json response after 5 or 10 min. My question is how may i create that URL…
0
votes
1 answer

Empty JSON values (LWC)

Hi guys I'm trying to get some "hardcoded" values from an apex Method, but when I write a console.log it's comming empty. Here's the code I'm working on: @wire(getValues) wiredValues({error, data}) if(data) { …
Diego
  • 69
  • 1
  • 1
  • 10
0
votes
2 answers

how to delete all records excluding 0th record in array index

As per the code I don't want to delete 0th record and delete rest of the record. But it is deleting all the records! Kindly assist where I am making the mistake. Here is the code: list scope = [Select Id,(Select…
0
votes
2 answers

How do I dynamically generate sections in visualforce page?

The objective is to have numberOfSections variable in the controller and then dynamically generate these sections on the vf page with the same format. How can this be achieved?
1 2 3
99
100