Questions tagged [apex-code]

A proprietary Java-like programming language for the Force.com Platform, not to be confused with Oracle's Application Express (oracle-apex).

From the Salesforce.com page What is Apex?:

Apex is a strongly typed, object-oriented programming language that allows developers to execute flow and transaction control statements on the Force.com platform server in conjunction with calls to the Force.com​ API. Using syntax that looks like Java and acts like database stored procedures, Apex enables developers to add business logic to most system events, including button clicks, related record updates, and Visualforce pages. Apex code can be initiated by Web service requests and from triggers on objects.

For questions that are related to this tag you can use shorter tag - .

(Please use to refer to Oracle Application Express.)

Useful links:

Force.com Apex Code Developer's Guide

1514 questions
-1
votes
1 answer

How can I save a list of IDs in Salesforce for use in another process?

I'd like to query a list of IDs at one point.... save it temporarily.... then use that list in a future Apex process later. Is there a way to do that?
Joey Dias
  • 7
  • 4
-1
votes
1 answer

Integrate Salesforce with Azure DevOps via APIs

I'm looking for a way to integrate Salesforce with my Azure DevOps instance via webhooks/APIs so tat when a acase is created on Salesforce, a work item (task) is automatically created in Azure DevOps instance. I have been able to achieve this using…
-1
votes
1 answer

How to create a picklist field value using trigger when new record is added?

Apex code to create a record picklist in an object when a new member is created in another object?
-1
votes
2 answers

How do I form an XML string from the APEX queries?

How do I form an XML data string from the APEX queries ? Any particular class I should be using ?
Hrishikesh Choudhari
  • 11,617
  • 18
  • 61
  • 74
-1
votes
1 answer

I can not able to understand myAccountTrigger on Account Object I have provided the link to my problem

I can not able to understand myAccountTrigger provided on this link please help me through this Below is the Link https://developer.salesforce.com/docs/atlas.en-us.224.0.apexcode.meta/apexcode/apex_triggers_context_variables.htm
-1
votes
3 answers

Oracle APEX - Bootstrap Material Dashboard

Hi, does anyone know where we can find this beautiful Bootstrap and how can I use it in my APEX application? I found the code for these beautiful cards: .card-counter{ box-shadow: 2px 2px 10px #DADADA; margin: 5px; padding: 20px…
-1
votes
1 answer

String Formatting in Apex

I have to format string day='11/22/1999' into '2020-11-26T00:00:00-05:00' this String format with default time value as 0 in apex. please let me know if anyone worked on this.
megha
  • 3
  • 2
-1
votes
1 answer

Is it possible to modify the body of triggers and classes in a Salesforce Production instance?

If i have a number of triggers and classes registered in Salesforce Production instance from my SandBox. If the registered triggers / classes have been modified is it possible to update the trigger in Production without having to rerun the tests and…
Karen-S
  • 21
  • 3
-1
votes
2 answers

How to Write SOQL for 2 custom objects which have same fields Level_1__c, Level_2__c,Level_3__c

I have a custom object named Case_Type_Data__c with fields Level_1__c, Level_2__c,Level_3__c and I have another custom object named ERT_Case_Type__c with the same fields Level_1__c, Level_2__c,Level_3__c I batch copied data from ERT_Case_Type__c to…
-1
votes
1 answer

Need to take out For Loop Inside another For loop

In apex i trying to take out below for loop inside for loop . Below Code base is iterating list if Sobject records. for(SObject sObj: listRecords){ Map RowsValsItemListMap = new Map(); List ValsItemList =…
-1
votes
1 answer

Retroactively run a process on existing records meeting criteria

I am trying to retroactively run a process on records that meet certain criteria on my organization. I have a csv report of the records and tried updating thru Data loader so they can meet the required criteria. However even when trying to update…
-1
votes
1 answer

How can I test Page reference in salesforce

Please I am newbie to salesforce and I want to make unit testing forthis method: public PageReference method1(){ PageReference p = new PageReference ('/hello'); p.setRedirect(true); p.getParameters().put('id',id); …
Rodrigo
  • 327
  • 6
  • 25
-1
votes
1 answer

How to Display Wrapper Class Variable in Apex Controller

Find the link and provide me the solution for that. I could paste the code here directly,so fine the link click here to view the code
Vignesh B
  • 99
  • 7
-1
votes
1 answer

How to get all Issues from Jira which are created and updated today

I need to find all Issues that are updated and created today in Jira. Im able to get an issue by passing a single Issuekey value to the url in my apex code. Help me in Querying a list of issues which are updated and created today. This is my apex…
mounika
  • 1
  • 1
-1
votes
2 answers

Apex Trigger- how to update all case owners using trigger?

when user clicks on case to change caseOwner/user, i have to add this user to all associated cases(per customer). I am using below code ,but it is updating only one record/case. i can see in debug logs all cases were updated with latest owner but…
Sriram
  • 1
  • 2
1 2 3
99
100