apex's questions - English 1answer

23.664 apex questions.

Is there a limit on the content publication ? Is this the same as content version? The docs say "The maximum number of versions that can be published in a 24-hour period is 5,000. " Does this ...

I have a list of questions that I am unsure of. There's a few questions on SOQL and SOSL. SOQL Questions: Can you do joins in SFDC? I have only learned the Parent Child relationship way for SOQL and ...

I'm working on an interface that allows users to create activities directly from a list of records of a custom object, so I created a wrapper class that contains said object and a task, in order to ...

when i am validating while deployment via change set getting above error, could you please help me on this , Thank you, Mahesh,

I have a callout where we use a Named Credential and it looks something like the following: public class MyClass { public MyClass() { inputHttpHeaders_x = new Map<String, String>...

I am beginning to look at using a Lightning Component to quick create records, I have been able to get quite far but have got a little stuck when trying to set the record type id of the destination ...

I'm not sure what to do next with my JSON2Apex generated output since I only need to see the values for three JSON keys. My generated output is approximately 300 lines long and below is a snippet of ...

I have a visual force page where I had to define a look up to Contact. So I used contact.ReportsToId like below <apex:outputLabel value="Select Requestor:" for="requestor"/> <apex:inputField ...

Is the Phone field type ever searchable? Have platform dev questions about searchable fields but have come across conflicting answers. Basically I just want to understand is Phone field type ...

I want to know the process of authorization or authentication using self-signed certificates. I am trying to integrate two salesforce dev orgs using REST callouts. I have created a self-signed ...

How can I clone a salesforce Profile? I'd prefer to use Apex or DX/CLI. Our normal process for setting up an Org is to clone standard profiles, and then customize those clones. This probably ...

I have a requirement to call a external service with post method. When i tested in anymonous block.It's working fine. But when i try to set up test classes i got this error. in line Map results ...

I'm trying to create a process that creates Orders and Order Items, once I define my Object Reference to create the lineItems always I got an Invalid Key Reference exception I would like to know if ...

Before I go ahead and describe my issue, I have looked at a resolution as described below and does not seem to help in my case. is that possible to pass(POST) below JSON to REST endpoint? So, I have ...

I have a list accountList which contains corresponding contacts aswell. Now I am trying to make a map from that list with key as single account and corresponding associated contacts as value. public ...

Continuing from my old thread https://salesforce.stackexchange.com/a/228572/59004 Thanks for pointing out the mistakes ,I corrected some after going through the AWS doc as suggested by you however I ...

how to get code coverage for following code snippet. public with sharing class IDFQuestionandAnswers { @AuraEnabled public static List<QuestionWrapper> GetQuestions() { List<...

When I google I find a lot of answers on how to get field label using field name. For example: SObjectType type = Schema.getGlobalDescribe().get('Account'); Map<String,Schema.SObjectField> ...

I am developing an application that is supposed to connect with clients' salesforce accounts and deploy some apex code to them. I am doing this in Groovy - but Java works same. After looking at the ...

I have a pair of dependent picklists. In Apex code, how can I determine what options are valid in the dependent field for each option in the controlling field? I've tried using getPicklistValues(), ...

I have a function in Apex that sets a few fields on my custom object and that also calls the recalculateFormulas() function on the object. I call my function from Salesforce through a custom button. ...

public with sharing class updateoppclass2 { public updateoppclass2(ApexPages.Standardcontroller controller){ } public PageReference gotopage1(){ PageReference pref2=New ...

Are there any tools available which help with Apex code refactoring? With features like: Renaming classes and updating all references Renaming method names and updating all references Finding usages ...

In our business project we need to integrate with an external system which uses amazon sqs WS in order to manage client requests. Is there an example implementation in apex for sending/receiving ...

fields:"Include_in_Oppty_Rollup__c" message:"Include: value not of required type: " statusCode:"INVALID_TYPE_ON_FIELD_IN_RECORD" Include_in_Oppty_Rollup__c is a checkbox on my object. I ...

Below is the code I'm running from apex execute. Error received - signature mismatch error... Able to authenticate using postman String formattedDateString = Datetime.now().formatgmt('yyyyMMdd\'T\'...

Background: We've created a pseudo-single-sign-on integration between our external cloud program and our Salesforce environment, allowing our users to log in to our Lightning Community Site via a ...

I am using remote object to bring some values into a VF page, basically the user as it types it calculates and update the opportunity, so the remote is "constantly" updating the page. Then I have a ...

I have a Force.com site portal written completely with custom Visualforce, HTML and CSS. I have a component which is used to display the navigation links at the top of the page. This navigation is ...

What is the right way to get the current users profile in an apex class? When I tried to print the following in visualforce page, i am able to get the profile name <apex:outputText value="{!$...

Firstly, let me apologize in advance for my extreme naivete' in this matter. I'm quite new to VF and could not find documentation to cover what should be an incredibly simply issue. I have a quick ...

We want a mobile push up notification when a record is created in custom objects ? Is it possible ? If yes, how can we do that ? I have checked Push notification in Salesforce1 But this answer ...

I have developed a visualforce page which contains a button to download the content of the visualforce page as pdf. When I click on the button, a pdf file is downloaded but when I open the file it ...

I am trying to create an EventRelation record on insert of an Event. Basically I am trying to add WhoID of Event into invitees automatically. Am I missing anything. I am not getting any error also. ...

I am trying to upload a file from salesforce sites into Files and then relate it with a record using VF page. i am able to upload the file and while creating a ContentDocumentLink i am getting this ...

I am having trouble testing each condition of the do_init method in the test class and I am thinking I have some sort of scoping mind block. How can I write the test class to test each condition? I ...

I am trying to display content from a JSON feed on my Salesforce page using APEX/visualforce page. From information gathered, I am able to get the details of the JSON on variable. But when running the ...

I am receiving the above error upon executing anonymous code of a test class. All I am executing is database insert of 200 records each time (total 14000 records). The primary aim is to insert all the ...

String Extraction

0 answers, 47 views apex string find
This is probably an easy one but for the life of me I can't seem to find the right syntax to get this to compile and return what I actually want. List<User> lstUsers = New List<User>()...

Can you guys tell me how to find which class is associated with which object in Salesforce?

Here I am trying to get related object and their fields dynamically.In debug I am getting related objects and fields but error is while loading VF page.Here is my code: Apex Class: public class ...

I want to create a chain record like contact is related list of account and opportunity is related list of that contact which is connect to account(same account). i am able to insert them ...

I've a custom object which has a picklist field. I've one visualforce page which shows values from this custom object picklist field to visualforce pagepicklist field. When user first time opens the ...

I'm using callApex method in lighting:container: LCC.callApex("lcc1.ApexController.getAccount", ... lcc1 - namespace ApexController - Cls getAccount - Method global with sharing class ...

I have a vf page where i'm fetching data from controller. I face issue when i click on a button and the panel get refreshed. After refresh i sometime get's the data on vf page from controller and ...

We are selling products in subscription and would like to display to our customers price per year in our quote. To do this, I am trying to allocate QuoteLineItem Total Price over "contract year" by ...

I have following VisualForce page code: <apex:page standardController="WMIDMapping__c" extensions="GroupsTestController" showheader="true" sidebar="false" docType="html-5.0"> <apex:...

We are trying to access S3 resources via Cloudfront inside a VF page in Salesforce. The S3 bucket, folder & files are all marked private and the access is granted only via Cloudfront. We already ...

I am using the HighCharts.js scatter graph with Salesforce in a Visualforce page. I wish to have the date of the 'Football Contract Signed' field display correctly on the x-axis, such that it would ...

I wrote the following code, but I know that it is not properly bulkified. I have tried to bulkify it, but facing some issues. Please guide me on how to bulkify this code, so that I can use it as ...

Related tags

Hot questions

Language

Popular Tags