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

Button disable in Visual force page

On Standard Object (account) i have a button called SAD. The button is added over there by Visual force page. Now my question is on Account page, for particular field Picklist value (Eg.. Company type=''Z001') how to disable the SAD button…
0
votes
1 answer

How to create a new folder in google drive by using trigger on custom object creation?

Created trigger on custom object. And to create folder will call @future method to support rest API calls. But I am not getting the proper code or guidelines to follow for folder creation in google drive. Found below links for folder creation but I…
pranav
  • 25
  • 5
0
votes
1 answer

Query Accounts based on Search String

I have a requirement where I have a search box on the vf page. Based on the search string I am returning accounts to the page. I have written a query which searches for account name based on the search string. But I want to compare the search string…
0
votes
1 answer

Saleforce Test Classes for CPQ API Models

I'm a bit new to creating Salesforce apex. I'm looking to implement Saleforce CPQ API. Do we need to create test classes for the CPQ API Models? Link:…
Paul P
  • 31
  • 1
  • 7
0
votes
1 answer

Oracle APEX, populate field as ldap current user

When I create a record I'd like to populate one of the fields (P34_CONTACT) with current ldap user. I am creating a dynamic code with (picture above): apex.item("P34_CONTACT").setValue(:FULL_USER_NAME) I am getting an error: Uncaught SyntaxError:…
Kondjitsu
  • 19
  • 1
  • 1
  • 4
0
votes
1 answer

Displaying Records based on keyword from vf page

I have a senario where i will be dispalying input text fieldon vf page ,when i enter some value and click on search button the realted accounts should be displayed depending on that keyword. I have tried the following code ,but i am unable to…
m.dinesh
  • 1
  • 3
0
votes
1 answer

INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY when trying to deploy an apex class in production

i'm trying to deploy an apex class, and i have the following error when trying to validate the changeset in production, could someone help ? Thanks ! :) Apex class description : The batch has to convert a lead without creating an opportunity,…
tiuse
  • 1
  • 2
0
votes
0 answers

Trigger to run only after checkbox goes rom unchecked to checked

I want to run a trigger on Contact if a checkbox on Contact object goes from unchecked state to checked state and then do some processing on the records. I have this trigger on after insert and after update. The code works fine for update but if I…
Anonymous
  • 3
  • 1
  • 4
0
votes
1 answer

Converting the Time format in dateTime from 00:00:00 to 23:59:59

I have converted a Date into DateTime format, and it is returning me the hour format in 00:00:00 but I want it to be in 23:59:59 Date startDate = Date.newInstance(2021,2,1); This returns the output as 2021-02-01 00:00:00 When I try to convert this…
Akshay Vasu
  • 445
  • 1
  • 12
  • 33
0
votes
1 answer

Does anyone know why I am getting this APEX interactive report/X-Content-Type-Options:nosniff issue or how I can resolve it?

Hi I have a sandbox environment that we are using to test how our apps will act in APEX 20.1 (All Apps are from version 19.1) but we seem to have a few issues with some areas and getting a identical or similar error as…
0
votes
0 answers

Not able to see User record in apex

I have created a lightning web component that is wrapped in a lightning component. I am using the lightning component in quick action on the Contact object. On the LWC we are querying the user attached to the current contact. The class looks like…
वरुण
  • 1,237
  • 3
  • 18
  • 50
0
votes
1 answer

create a note and attach it to multiple records

I figured out this code where I send id and message via params, but i need ONE single note related to multiple records, not a note for each record public static void crearNotas(String casoid, String mensajenota){ //creamos notas para los…
sirlegrau
  • 25
  • 4
0
votes
1 answer

Conditionally Change Color Apex/Visualforce Lightning

Would someone be able to help me with two questions; I am writing a simple VisualForce page to display some key record information on lightning page for our sales manager to know their email address health.  Currently I have the following…
0
votes
0 answers

How do I align text to the input using grids

I need the text and the input to be vertically aligned. This is my code: contenidoEmail

Para:

sirlegrau
  • 25
  • 4
0
votes
1 answer

APEX_WEB_SERVICE.parse_xml does not return a value with nested Namespaces

I'm using Oracle Autonomous 21c and calling an external SOAP Webservices. While using APEX_WEB_SERVICE.parse_xml it does not return a value if the response has nested Namespaces. I've tried so many combinations with p_xpath and p_ns with no…
Hani Sami
  • 3
  • 2