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

Salesforce Inbound Sms integration

I am trying to trigger an apex class on every inbound text message received for messaging session in omni channel tab. But I am not able to find any object that can be used to attach a trigger on it. Have searched online as well, but in most of the…
0
votes
1 answer

Salesforce | Get data from a field of an SObject record when i have only the field in string form

Lets say I have an SObject record { Id: "abc", Field_A__c : "field A value", Field_B__c : "field B value" } and a string "Field_A__c". In apex, is there anyway i can get the data "field A value" using just the record and the string? if the…
Bonish Koirala
  • 641
  • 5
  • 16
0
votes
2 answers

Salesforce AES 128 decode in .NET

I'm trying to decode a string crypted using AES 128 in Salesforce and passed me via web by a vendor. I know how they encrypt the string and the vendor gave me a "decryption script" written in Apex (see below), but I'm not able to transpose that in…
Flash
  • 142
  • 2
  • 12
0
votes
2 answers

LWC superbadge step 14 challenge

I am on step 14 of LWC superbadge and getting the following error : We can't find the wire service provisioned function similarBoats() with the data property used correctly in the component similarBoats JavaScript file. Make sure the component was…
M.S
  • 41
  • 1
  • 7
0
votes
1 answer

Visualforce / Apex: Access two objects with one controller

I'm forcing the problem that I have to set up a visualforce page rendered as pdf, which outputs a automatically generated invoice. Because of intern workflows this page has to be set up to the Opportunity object. Most of the fields used are taken…
Dennis1995
  • 55
  • 2
  • 8
0
votes
1 answer

Visualfoce: Date format is shown as 217 July 2020

I have a problem with the date function in visualforce. My code looks as following:
Dennis1995
  • 55
  • 2
  • 8
0
votes
1 answer

How to get salesforce custom object in VS Code

I would like to set up a dev environment using Visual Studio Code. I'm able to do that with the help of Salesforce Extension Pack. I want to fetch all custom objects in the VS Code. How Can I achieve this?
Ravi Shah
  • 843
  • 12
  • 29
0
votes
1 answer

Create button in VF Email Template to Reopen Cases

I'm trying to create an email template to send to the user when his case is closed. In this email there will be a button and if the user clicks on it the case will be reopen. Is there a way to do this? If not, are there any other ways to make the…
0
votes
1 answer

Json response to be deserialized in Apex salesforce lightning

I am getting the below Json Response by hitting a RestAPI. ** [ { "index": 0, "object": { "attributes": { "ID": [ { "type":…
0
votes
1 answer

XSL FO inline alignment for the VF pages

I need to get text aligned centre and right on the same line. This should be possible, but I can't seem to find a way. I'm using these tags in VF page for the quote document. Can someone help me to get this right?
0
votes
1 answer

Apex basics - quick question on code coverage

My company hired an agency to create an MQL salesforce object. Its constructed from an Apex class with various triggers. We no longer have a need for it, and as the standing saleforce admin, there is none at the company who knows Apex. I'm taking…
0
votes
1 answer

How to hide selected value from select option drop down

let's say with the select option(dropdown) on the visualforce page I have INDIA, USA, UK. if I select INDIA that should be displayed in visual force page and if I open again dropdown the selected value or displayed value on visualforce page, it…
0
votes
0 answers

Salesforce Community - logging user in via Apex isn't updating current user

We have a lightning community, as well as a VF community that holds a cloudcraze/B2B commerce storefront. Within the lightning community we are calling cloudcraze APIs for things like user registration. Currently, we are successfully registering…
Ashley
  • 1
  • 1
0
votes
1 answer

How do i write test class for below apex code

Please help me in writing test class for below apex code,i wrote a test class which shows only 66% coverage,i am looking for 100% public class PickListHandler { @AuraEnabled public static List getLevel1(string strName) { …
Carolyn Cordeiro
  • 1,525
  • 3
  • 11
  • 26
0
votes
0 answers

Chaining Apex calls from Lightning Component within Promises doesn't reset the Salesforce CPU time limit countdown?

because of the CPU time limit, I'm chaining several Apex calls from an Aura Lightning component using JS promises, hoping that comming back on Front side would end the transaction and reset the CPU time limit countdown. But it is not the case. Is…
Falzen
  • 1
  • 2