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

Filter by
Sorted by
Tagged with
0 votes
1 answer
6 views

Delete Contacts in salesforce throws error using Developer console >> DEbug >> open execute anonymous window

I am trying to delete contacts that match certain conditions, example if Email = null OR Email = '', using Developer console >> DEbug >> open execute anonymous window, List<Contact> ...
  • 3,508
0 votes
0 answers
13 views

Named LOV gets refresh to default on Button Click in APEX

I have a Region called "EDIT ALLOCATION" where I am displaying a report with below 4 Columns and in one of them I have a Named LOV where user can Select its value and save the changes. ...
  • 15
0 votes
0 answers
8 views

call apex function when click on URL

How can we call an apex function from URL click? The URL is in email. Hi, How can we call an apex function from URL click? The URL is in email. Thanks in advance.
0 votes
1 answer
18 views

How can make excution for the Apex Class Action in Open Execute Anonymous Window

I would like to execute this apex class in the debug "Open Execute Anonymous Window": ExternalDriveUploadRunAction apex class is to process the External Drive Upload record. Code is as below:...
0 votes
1 answer
9 views

Id.ValueOf complains, even though it's a valid ID..?

TL;DR - the below problem seems to affect Developer Console, but not running from VSCode... I've uploaded a static resource which is a CSV containing a bunch of IDs. I now want to build up a list of ...
  • 977
0 votes
0 answers
10 views

Exception in executing a Batch Test Class in Salesforce

I have a managed package in my Org. In this Managed packaged I got a Object named Payment. I have written a Batch class for updating some Confidential fields in Payment Object so whenever a sandbox ...
0 votes
0 answers
23 views

I want to write SOQL query listing all FieldPermissions but without formula/calculated fields

I need to write a SOQL query listing all FieldPermissions without the formula/calculated fields The query I wrote is: SELECT Id, Field, SObjectType, PermissionsRead, PermissionsEdit FROM ...
-2 votes
0 answers
25 views

Create multiple lists based on the number of items that exists [closed]

How can I create a dynamic number of the list item base on the list of the items getting from somewhere Ex : I have 3 items: a, b, c : and I want to create 3 lists corresponding to the number of ...
  • 11
1 vote
1 answer
18 views

Overriding default Apex PMD rules

I'm trying to customise a PMD ruleset to identify violations of our code style conventions, for Salesforce Apex code. Most of our conventions follow the default generally-accepted conventions in the ...
  • 91
0 votes
0 answers
11 views

about integration with salesforce and signnow

Error uploading file: Internal Server Error 500 the code public class SignNowHelper { public static String uploadFileToSignNow(String filePath, String accessToken) { // Read the file contents from ...
0 votes
1 answer
14 views

How can debug and make excution the Apex Class Action

I would like to execute this apex class in the debug "Open Execute Anonymous Window": ExternalDriveUploadQueueAction apex class is to queue an upload request to the external google drive. ...
0 votes
0 answers
5 views

Custom Salesforce package that calls external API

I need to write a package for a salesforce environment that does the following: Run when a CRM user meets a condition based on attributes Calls an external API with a number of this user's attributes ...
  • 736
0 votes
0 answers
8 views

can you please let me know whether it is possible to write test class to validate Layout?

can you please let me know whether it is possible to write test class to validate Layout ? For example in task creation layout if the position of button is changed, is it possible for apex test class ...
0 votes
1 answer
12 views

Can I add/embed an action layout to a LWC or Aura Component?

I want to know if an action yalout can be called from a component in Salesforce (aura o lwc). This is the action layout that I want to add with its predefined fields
0 votes
0 answers
14 views

it is possible to change the salesforce standard service application to classic to lightning in salesforce

unable to change the service application to lightning from classic, I need to assign the lightning record page for service application in lightning but in assignment service application is not ...
0 votes
0 answers
14 views

How to change a field value in a record when typing on another field

When I try to create a record in salesforce I need to change the value of a field when I type something in another field Using aura and ScreenFlow
-1 votes
0 answers
10 views

Write Apex batch to insert invoice

Below i have a code: global class BatchGenerateRealtedInvoiceList implements Database.Batchable, Database.Stateful { global Database.QueryLocator start(Database.BatchableContext bc){ return ...
0 votes
0 answers
11 views

How to create a button to copy rows from one table to another - APEX

I have an interactive grid page and the checkbox was created using APEX$ROW_SELECTOR. I would like to copy the rows that was selected by the user to another table when the user clicks the button. What ...
0 votes
0 answers
18 views

Adding validation on textarea field which is iterative in lwc

I am trying to add validation on the textarea field. The OTP column will have a new textarea field added every time a record is added. The validation works fine only on 1st record. But if I validate ...
0 votes
0 answers
24 views

Print all Visualforce pages at once

In Salesforce I have an object called Invoice. I use a Visualforce Page to render an invoice as PDF. Now I have the requirement to print all invoices (10,000+) at once. What is the best way to print ...
0 votes
0 answers
29 views

Oracle Apex Show Notification count on icon

I have created an application in Oracle APEX, and it includes a bell icon for notifications. I want the notification count to appear on the icon of my Oracle application installed on my mobile ...
  • 1
0 votes
1 answer
7 views

Apex incorporating an if statement into a block of text

I am converting a flow to Apex and within the Flow I have a formula field that creates a string. Within that formula I have conditional code to vary the wording. But I am not sure how to do that ...
0 votes
1 answer
38 views

how to call a static method from a trigger handler that extends a virtual class in Apex?

I've got a trigger handler class which extends a virtual class from this framework. public with sharing class OrderItemTriggerHandler extends TriggerHandler { } public override void beforeInsert()...
  • 37
0 votes
0 answers
13 views

How to copy APEX ROW_SELECTOR selected rows to another table?

I have created an interactive grid application, where I would like to create a button to copy the APEX$ROW_SELECTOR user selected rows to another table. What I tried so far? I created a Dynamic Action ...
0 votes
0 answers
14 views

How to create duplicate row and save the data to the table in apex

I created a page with interactive grid and I would like to create a button to create duplicate row and another button to save the data. I used the following script to create a save button and ...
0 votes
1 answer
25 views

solve err in before insert trigger on pl/sql

I create table b create table b( id number(3), name varchar2(5), birth_day date ); & I create trigger p create or replace trigger p before insert on b for each row declare g number; begin ...
0 votes
1 answer
47 views

Oracle Apex 22.2 Text field with autocomplete

I am working with Oracle APEX 22.2 and text field with autocomplete. In 22.2 they changed the attributes of this item. I've created an List of Values with type SQL Query. The query should have two ...
  • 1
1 vote
0 answers
41 views

Configuring Salesforce LWC Local Dev Server on MacOS / Chrome - 500 Error When Calling Apex with Wire

I'm working on a LWC (lightning web component), and have been using the Salesforce Local Development Server successfully, until the point where I use a wire call to invoke the Apex function. I am ...
-1 votes
1 answer
49 views

How to add the checkbox selected rows to another table by clicking a button in apex

I have a table in my page (Region type - interactive grid) and checkboxes generated from APEX$ROW_SELECTOR. I would like to move the rows that were selected in the checkbox to another table when the ...
0 votes
2 answers
51 views

LWC Parent-to-Child communication issue

I'm working with two lwc components. Both have a relationship parent-child. In my parent.js I wire an Apex class which contains an objects array: Parent.js: // imports... export default class ...
  • 41
0 votes
1 answer
167 views

error: legacy-install-failure when installing apex

I followed the method(https://github.com/NVIDIA/apex#quick-start) to install apex with CUDA and C++ extensions(Linux), but I got the error in the picture. Local environment version: pytorch:1.13.1+...
0 votes
1 answer
67 views

Uploading a File to a Specific Folder in Google Drive API

I'm trying to upload a file to a specific folder in Google Drive API, but I'm having trouble getting it to work. I've tried both through code in Apex and using Postman to make HTTP requests, but the ...
0 votes
0 answers
15 views

I am Getting the inspection Id null in controller class while sending the email using email template & VF Component & graph is not visible in mail

Controller: `global class FireHydrantTestTempController { public Id inspectionId { get; set; } public Id documentId { get; set; } public FireHydrantTestTempController() { try { system....
0 votes
1 answer
57 views

<NoErrorObjectAvailable> Script error when navigating Flow from Lightning Web Component (LWC)

I'm getting this error based on when I click my LWC "Next" button to save my record edit form and navigate me to the following Flow screen. The data I enter in my LWC still saves fine, but ...
  • 35
0 votes
2 answers
32 views

How to pull out the Contacts whose associated account has highest annual revenue?

I want to pull out all those contacts whose associated Account have highest annual revenue and I use below SOQL query select name, account.AnnualRevenue from contact where account.AnnualRevenue=(...
0 votes
1 answer
32 views

i am Struggling with Regex , Pattern matcher always return false

Case record has Description field which will hold value like [https://s3.amazonaws.com/deep-email-resources/logo-big.png] Detection Event - Europe - UK - Nordics - UK-HSE Bootle *[151] Event ...
0 votes
0 answers
34 views

Salesforce sending JSON request to microsoft endpoint via REST API

I am trying to send a JSON request body to a microsoft endpoint In microsoft, they will only accept a JSON of below format example:- {"customers":"[{"CountryOfNationality":&...
0 votes
0 answers
19 views

how to send an email with a link that when pressed will lead to a page for that candidate

i can send email but I need to click the button in the email and show page 3 and then show that candidate's website with candidate_id as the tell who BEGIN UPDATE HR_CANDIDATE SET CANDIDATE_STATUS='...
0 votes
0 answers
14 views

Update Description field of Account with all related contact Name comma separated

getting error that Variable doesn't exit Variable does not exist: Description Variable does not exist: contacts Trigger Handler ###################################################################### ...
  • 1
0 votes
0 answers
44 views

Single page deployment of oracle apex using SQL developer

Currently we export a application entirely from Apex development workspace and run the below commands to deploy in a different environment Apex_application_install.get_application_name; Begin ...
  • 3
0 votes
1 answer
25 views

Add apex SQL Server with replace

I need to add an apex in a specific point of a formula in SQL Server, in a lot of rows. Can I do this with a script? I tried but SQL doesn't understand apex "like a string" CAMPO XYZ: X NOT ...
0 votes
1 answer
55 views

APEX Salesforce Random days have business hours less than 24 hours

Business Hour Setup IMGI'm trying to calculate business hours between two days. However for some reason random days are showing up with less than 24 hours or less than 86400000 seconds in between on ...
0 votes
0 answers
74 views

How to concatenate columns of datatable LWC?

I have a table Contacts. Table must contents idName & Name columns. Field idName must display a record in format 003XXXXXXXXXXXXXXXName as concatenation of Id 003XXXXXXXXXXXXXXX and String Name. ...
0 votes
0 answers
21 views

I'm facing the xhr failed issue while installing only salesforce wxtension pack and salesforce cli integration pack. Can anyone help me?

2023-02-23 12:49:56.645 [error] XHR failed,XHR failed,XHR failed,XHR failed,XHR failed,XHR failed: Error: XHR failed,XHR failed,XHR failed,XHR failed,XHR failed,XHR failed at vscode-file://vscode-app/...
0 votes
0 answers
34 views

Oracle Apex - Dynamic Header in Interactive Grid

I need dynamic header in interactive grid, which should look like this: 01/2023, 02/2023, 03/2023, 04/2024, 05/2023, 06/2023 ... 01/2028 Display each month and year over five years. When the month is ...
0 votes
2 answers
47 views

Dynamic Dataweave script to create salesforce record in Apex

I have a Salesforce object, which has a growing set of fields. I know that each field in the csv file will map into this object, and each column name in the csv will match the field-name in Salesforce....
0 votes
0 answers
16 views

Is there any way to restore the deleted data in Salesforce

Can i recover System log which i directly delted from apex code. System log does not go to recyclebin. In salesforce after deleting data (System log) it goes to recyclebin and stays there for 15 days ...
  • 1
0 votes
1 answer
37 views

How to get List of records using soql then acess that list from vf page JS

I have a apex controller which have list of Custom object Student record List public with sharing class get studentlist{ public List<Student__c> students {get; set;} public studentlist(){ ...
0 votes
1 answer
49 views

Button behaving globally and not for each item in Salesforce LWC

I am quite new to Lighting Web Component. However, I have some experience with other component base frameworks. I'm creating a button for each item and when the button is clicked for each item. It ...
0 votes
0 answers
21 views

How to reference standalone doc_root contents in ords while deploying on weblogic

My ords is working find in standalone mode. In standalone.properties, i have mentioned doc_root where all the custom images are referenced. When I am creating i.war file with apex static image (which ...

1
2 3 4 5
50