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
1 answer

Process builder and Trigger possible recursion

I have created a Trigger on Order object. There is a field called pacing in both Order and Order product Objects. When the Pacing is updated in the Order, I am updating the Pacing field in the Order Products too that are related to that particular…
Akshay Vasu
  • 445
  • 1
  • 12
  • 33
0
votes
1 answer

Is there a way to update the label of the custom fields in a managed package using code?

How to update the field label from apex class? I have a managed package and want to update the Label of the Package field from Apex class without using Translation Workbench in the subscriber org. Is there a way to achieve this?
0
votes
1 answer

Constructor not defined error after setting date fields as null during object creation

I have created a wrapper class to create an Object and send it as a request to a third party system. It was working well. But after I added a two new arguments of the Datatype Date, I am getting the below error. Constructor not defined:…
Akshay Vasu
  • 445
  • 1
  • 12
  • 33
0
votes
1 answer

Why isn't my LWC passing the values on submit to my apex class?

I've created an lwc that is called in a flow, but when I run it the form doesn't submit and the values aren't passing to the apex class. I can't figure out why. The form allows me to populate the fields when I run it from the opportunity, but when I…
KLWRK
  • 1
  • 2
0
votes
1 answer

Is there a way to convert Apex Select Statement to String

I have all the permission sets updated correctly as I i can hardcode a string 'Test' where the select statement is, but when i put in the select statement, My chat bot immediately closes. Could someone take a quick look? I am trying to test that I…
0
votes
1 answer

Multiple buttons with same action

In my VF page I have 7 sections that represent days in a week. Every section has "Add multiple timesheet item" button. When that button is clicked, new row shows up with fields to fill(Project, Number of working hours..). So, I have 7 buttons with…
0
votes
2 answers

Make LWC Display Different Body Messages Based on Picklist

I have started the LWC below. I am attempting to clean up our rich text screen components on a lightning page. Currently there are over 12 different components based to show on a picklist value. I want to condense those into one LWC. So if Picklist…
0
votes
1 answer

Click button and toggle the button label

I have created following function. function appendActionToMarkertText(markerText, lat, lng) { markerText = markerText + '
0
votes
1 answer

Setting Dependent Custom Lightning Picklist Level2 and Level3 then resetting the Level2 at Lightning component but Level2 Cached Data is Getting Saved

Step 1 In a Salesforce Lightning component I have a scenario with three levels of dependent picklists, first I am setting values for picklist Level1, and Level2, then the user selects the dependent picklist value in Level3 Step 2 When I remove the…
Carolyn Cordeiro
  • 1,525
  • 3
  • 11
  • 26
0
votes
1 answer

Apex Chart - Reverse Bar Chart so 0 is the highest value

I'm trying to build a table like below using apex charts, I want the lowest value in the data array to be the peak of the chart. I've tried adding the reversed:true configuration to yaxis but that just flips the axis round and doesn't start each bar…
Joe
  • 97
  • 1
  • 2
  • 10
0
votes
1 answer

How To Make IsProcessed Flag Is Set To True for records whenever a batch Job is executed?

In my custom object ERT_Case_Type__c,in that i have a check box IsProcessed which is by default false Now I need to make this IsProcessed Flag set to True whenever a batch Job is executed ,here is Pseudo code, now what i am looking is ,what exact…
Carolyn Cordeiro
  • 1,525
  • 3
  • 11
  • 26
0
votes
1 answer

How to Write SOQL for Distinct of combination of Level_1__c,Level_2__c and Level_3__c

I would like to know if there is possibility of writing a SOQL similar like we do in SQL like Distinct of Level_1__c,Level_2__c and Level_3__c Currently SOQL is select Case__c, Level_1__c, Level_2__c,Level_3__c FROM ERT_Case_Type__c…
Carolyn Cordeiro
  • 1,525
  • 3
  • 11
  • 26
0
votes
2 answers

function Number() { [native code] } Error in JavaScprit

I'm just trying to see my total amount of number variables with decimals but it's not working. My platform is Oracle Apex 20.2 var model = apex.region("itemig").widget().interactiveGrid("getViews", "grid").model; console.log(model); var amtKey =…
OnurSari
  • 33
  • 10
0
votes
1 answer

How do I use the REST API to update an Apex Trigger?

curl --location --request PUT 'https://ap17.salesforce.com/services/data/v48.0/sobjects/ApexTrigger/01q2x000000YiNcAAK' \ --header 'Authorization: Bearer 00D2....' \ --header 'Content-Type: application/json' \ --data-raw '{ "Name":…
0
votes
4 answers

How to call react function on click event of react apex chart

I want to call react function on click event of react apex chart. While cliking on apex chart bar or pie chart slice , i want to call react function example:- dataPointSelection: function (event, chartContext, config) { this.myFunction(); } I can't…
pawan kumar
  • 111
  • 7