apex's questions - English 1answer

24.229 apex questions.

I am trying to subscribe to my platform event using the empapi feature. This feature was added in v44. I am following the example of the documentation page: https://developer.salesforce.com/docs/...

I created a new case layout and I would like to display the related account's related cases. I can currently show all the related account's cases but I would like to split that up into two related ...

I'm writing a lightning component that does the below. Clicking a button will pop a new form(Modal). I will fill the form and hit the save button in that Modal. The data gets inserted into the ...

VF page <apex:page standardController="customer__c" showHeader="false" extensions="regiController"> <apex:form > <apex:pageBlock title="Edit Customer"> &...

I have a pick list with A, B, C values. Whenever a new record is created then automatically B value needs to be selected and save the record. Please let me know how this can be done by using Apex ...

How can I count the number of details in master-detail relationship? Let us suppose I have Detail_Type__c and Master_Type__c. Now if I have and Id of a Master_Type__c record I can do the following ...

I have a Set<Id> which I want to convert to a Set<String>. I don't want to use a for loop to iterate over it. What is the simplest way to do this?

I want the data to create a case in Salesforce when somebody fills out the google form. I went to through the documentation of App Script which can be used to make the Rest API callout to salesforce. ...

I am using the new Configurable Self Rego page for communities. I have successfully put in a new error message using Try & catch, but I want to make the url in the error message clickable. catch ...

Exam_Date__c = 01/01/2018, Expiration_Date__c = 01/31/2018 (usually 30 days gap) I want to send an email 7 days prior to expiration, on say eg. 01/25/2018, likewise. I used the following formula in ...

I have written one trigger which fires on account create and update,but there is one API which creates/update account and if creation/updation is through that API i don't need to fire trigger. Please ...

I have created a autocomplete functionality for contacts. once I selected contact I am redirecting page with the help of contact ID I am fetching the contact and Content Version details. it's work ...

While I am creating a Community User through an apex call to SiteSite.createExternalUser(u, accountId, password), the method is returning null. Can anyone help me out?

I know some basics on callouts but would like some advice on doing multiple callouts. Requirements: I have an external system where guests are registered this could be large amounts. I have to get ...

I'm trying to export record on into a tab separated text file. In getting Maximum stack depth reached: 1001 in the inner class where i'm doing the piece of code and I have pasted full code in the ...

I want to use the below regex string: private final String regex = '^.*\s(\d+)\s.*$'; In a Pattern: private Pattern pattern = Pattern.compile(regex); But I am getting this error: Illegal string ...

I am trying to fetch the images from the attachments and trying to display these images in a visualforce page which is rendered as pdf. But in the pdf I am getting broken images. If I remove the ...

I don't know how to explain this, but its totally weird and strange, Please take some time to read it. Let's understand the flow here, Let's start with the flow first what we are actually doing there....

We're using OpenCTI for our call center connector, and we're trying to call out to a web service from a button click on a custom object layout, passing arguments including the call UUID passed in the ...

I try to use HttpCalloutMock to test my post callout. But I become System.NullPointerException: Attempt to de-reference a null object. I need to test and web token, and posted object. I'm just ...

I become an error System.NullPointerException: Attempt to de-reference a null object in my test: public class Token{ public String accessToken{get;set;} } public static String accessTokenBody(){ ...

Scenario: I have created a inline VF page on detail page of Case object. On that page I am taking input from case owner related to the priority of the case. If case flagged with priority High then I ...

I am having fits with lightning aura iteration, the response looks corerect, it doesnt do anything just puts in a blank row, no errors I've tried changing apex class variable types, uppercasing the ...

dynamic datatable

1 answers, 623 views apex visualforce class
I want to create a datatable with opportunity information. I add a picture that shows how the table should look like. I have the information for the table ( below is my class code), but I don't know ...

I have a Case object related to a Custom Object work part (Api Name- Work_Part__c ). Case is the parent object. I am trying to fetch all the work parts related to a case using below query List<...

Hi i have a changeset which has 2 apex class and their test classes with 65% and 80% individually test coverage, if i choose a option of run specified test, will that be deployed? Because one of apex ...

According to the Execution Governors and Limits the limits for either synchronous or asynchronous transactions can vary, that is why I would like to check whether my current apex transaction is ...

I have a function that I fire on an after insert or update of my Inventory__c object public class duplicateException extends Exception {} public static void preventDuplication (List<Inventory__c&...

Original question: Hi All I have creaed approval process on custom object where i need to submit a PDF document for approval process. Once I attached the PDF file and submitted for Approval, am ...

My POST Method (data for web token - is my custom object's fields): public class Token{ public String accessToken{get;set;} } public static String accessTokenBody(){ //our web token (data is in ...

I wanted to show Picklist value from Account object Type Field. As I am Using Angular JS i can't use <apex:outputPanel styleClass="form-group" layout="block"> <label>Type</label>...

I tried to check/uncheck check-box on case object if email status of that case is new. here's my code which is not having errors but not working Trigger trigger ReadReceipts on EmailMessage (after ...

I am having an application in which I have added one Tab in it also it has a default Home Tab. Now I need to open up another visualforce page on a button click. I have used PageReference here : ...

I have a namespace issue - at least that's what I think it is. I have a basic simple Apex Class with the following definition: public with sharing class TestSub { public class SubOne { @...

I have an invocable method with varables. I am stuck how to set these in unittest Class public class or_service { public class invoceVars{ @InvocableVariable public id ...

I have a requirement where I need to display all the SObjects as a picklist. When the SObject is selected, another picklist having the name of the records of that particular SObject must be displayed. ...

I have two objects (Test1 and Test2) which have a lookup relationship to "Test 3". I need a single query to fetch the test1, test2 records by test 3 ID. Heres what I've tried: select id, name from ...

I have been looking at using a select list (picklist) in a Visualforce page form. Below are four methods of doing this. Each has it's own positives, however, i would like to know which is the best ...

I made scheduled class to get access token and save it to the custom object.. I set the scheduled jobs, using the UI (apex class > schedule apex), to run the class everyday.. but its not firing.. ...

Has anyone been able to find a formatting extension for Apex on visual studio code? And if so would they be able to share it?

I am trying to test a batch apex job, and to do that i need to insert Account and Contacts. They have to be related, and field FEMA_ID__c has to be different for each record, but match accross the ...

I have a schedule class that class a batch class passing the source and target to merge child records from source to target. Below is the schedule class. global class FIMCConsolidationSchedule ...

Please consider the below scenario: I have an Application__c object. I have a trigger on that (for simplicity, coded directly in trigger) which does one thing if the record name is Error then throws ...

I have a field which has the JSON string. I just need to populate a part of that string into different field is that possible? log__c = JSON={"eventPayload":{"units":1.00,"name":"D-00889","...

I am looking at the solution on how to call the invocable method with different data points How invocable method and bulk behavior in Process Builder work? I am calling this invocable method from ...

For a project requirement, I want use the Custom Quote Calculator Plugin on Salesforce SteelBrick CPQ. I have gone through many posts/Forum What I have understood is that this can be done using APEX ...

I'm playing around with Einstein Bots and have created a simple bot that is consumed inside a customer community. I'd like to get the current User inside an Apex action used in a bot dialog. The ...

How do I parse 2018-10-01T00:00:00Z Into an instance of DateTime I've tried: DateTime.valueOfGmt('2018-10-01T00:00:00Z'); DateTime.parse('2018-10-01T00:00:00Z'); DateTime.valueOf('2018-10-01T00:...

I'm using the Apex InboundEmailHandler to create cases from email, I need case fields to be populated directly from the email. All our incoming emails have same template. I'm currently using strings ...

I'm getting the source string from Blob.ToString() method and the target string is hard coded. string.indexof returns -1 even though the source string definitely contains the target string according ...

Related tags

Hot questions

Language

Popular Tags