All Questions

0
votes
0answers
3 views

Validation rule that flags if File is not present on custom object?

Requirement is to prevent saving of a record if a File (in this case, a quote) is not attached. Is this accomplishable declaratively?
0
votes
0answers
3 views

How to customise columns in Add Products popup

How do I customise the columns that appear in the Add Products popup which appears if you click the Add Products button on the Products related list on the Opportunities record page. All the ...
0
votes
0answers
2 views

How to redirect to CPQ Quote Line Editor page in an action/button

I am trying to implement a button/action to redirect directly from opportunity to related quote line editor. However, quote line editor is no longer a VF page now. I am not even sure whether it is a ...
-2
votes
0answers
14 views

How to call one method after another in wrapper class?

I Have a lookup based on that value selected i have to query and get the select options. I am trying to call the wrapper class but its throwing me null pointer error.guide me where i am going wrong. ...
2
votes
0answers
8 views

insufficient access rights on cross-reference id while deploy sharing rules

Getting the error while on deploy package with sharing rules. ... <sharingCriteriaRules> <fullName>Access_Refund_UK_Supervisor_UK</fullName> <accessLevel>Edit</...
0
votes
0answers
7 views

Manual Sharing/Opportunity team exposes other related data

We have two separate teams(A,B) which are not supposed to view each other's data. Specially account details, activities, contacts and opportunities. But sometimes user A1 has to share opportunity ...
-1
votes
0answers
10 views

How to invoke controller setter method in trigger beforeInsert()?

That is my VF page: <apex:page standardController="Lead" extensions="LeadDuplicateController" tabStyle="Lead"> <apex:pageBlock > <apex:pageBlockSection title="Lead ...
0
votes
0answers
8 views

How to create the Dynamic table in Lightning component

I am new to Lightning, I wants to make this below table dynamic, So once the searchResult will be having respected data i can show it dynamically by using Iteration tag. Column name and Rows should be ...
0
votes
0answers
6 views

How to use custom label during call of Lightning Component in VF Page

I am trying to use custom label during call of a lightning component in Visualforce Page. but its giving me blank value. can anyone please help me how i can do this, CODE: $Lightning....
-2
votes
0answers
10 views

I need help with an apex trigger? I know that I should do something like this x.10/100

2-Create the object called “Books” and create field “Price”(data type is Currency) under this object. Whenever we enter some amount of money in the Price field and once we click on save button, the ...
0
votes
1answer
8 views

Help in Lightning Sharing Component in Visualforce

I would like to run Lightning component in Visualforce but it keeps failing. Here is a error I keep getting. This page has an error. You might just need to refresh it. Action failed: c:...
0
votes
0answers
4 views

Visualforce: How to get the look of pagination buttons from a standard object like accounts to my custom visualforce page?

I have this code for the pagination buttons: <apex:pageblockButtons location="bottom" html-align="left"> <apex:commandButton id="firstpage" value="◄◄" reRender="details" action="{...
0
votes
1answer
9 views

How to setup Salesforce Identity Provider to work with Twilio Flex

What is the process to setup Salesforce Identity Provider to work with a 3rd party like Twilio Flex? Whenever I try to login, I get this error: Incorrect HTTP Method
-4
votes
0answers
15 views

Need help for multiple if else statement

IF ( OR( IF ((Email_Opt_In__c=true), "Green"), IF ((Remaining_Optin_Days__c<30),"Yellow"), IF ((Email_Opt_In__c=false), "Red"), 'NULL ' ))
1
vote
1answer
19 views

Setting today's date from lightning controller

I am new to salesforce lightning. I have a recordEditForm that I want to submit and before submit I want to make set field TODAY's date from the lightning component controller.I am not able to set the ...
0
votes
2answers
16 views

How to upsert multiple sObjects in a single DML where some have external ids as a matching field?

I have a rest @RestResource class that has a post method which needs to upsert an Invoice on an external Id, and update the associated Acct. In my existing code, I have 2 dml stateents below. Is there ...
0
votes
0answers
8 views

Visualforce: How to make outputlabel display above an inputfield?

I have this as my visualforce page code: <apex:pageblockSection id="thepbs" columns="4"> <apex:pageBlockSectionItem > <apex:outputLabel value="{!$ObjectType....
-2
votes
1answer
12 views

Best website's to practice & master APEX, VF, LIGHTNING coding? [duplicate]

Can someone tell me which are best sites to practice & master coding in APEX, VF & LIGHTNING. I am relatively new to Salesforce. I actually want some sample basic & medium level projects ...
0
votes
1answer
7 views

Change the div's css style in <aura:iteration>

I have a component: <aura:iteration items="{!v.objects}" var="obj"> <lightning:layout multipleRows="true" class="layoutBigCardsColumn"> <div class="slds-...
0
votes
1answer
6 views

Cannot get notifications on records that I follow

I want to follow a record so every time someone posts to the record chatter - I will get notified. I cannot get this done. What I have done so far: Enable Feed Tracking for the object with selected ...
0
votes
1answer
10 views

Prevent users from logging in during production delivery

We will delivery in our production org and we want to avoid users to log while the time of reconfiguration and delivery. It is recommended to modify Login Hours but we have a lot of profile to ...
0
votes
1answer
23 views

How to rerender specific row independently for picklist values

I want to render picklist values based on each row when lookup is selected. There is a filter where it checks the recordtype of the lookup and based on it picklist value will be displayed. The problem ...
-1
votes
0answers
16 views

Chunck Account list into List<List<Account>>() based on a condition

I am having trouble with a small piece of code. I am calling an API, with List of accounts address. API is working fine, but it gives error when URL endpoint length exceeds 3500. I have a look on ...
1
vote
1answer
7 views

How can I tell what the 'Maximum number of batch apex jobs queued or active concurrently' limit is in our org?

Is there a way I can tell what the 'Maximum number of batch apex jobs queued or active concurrently' limit is in our org? Usually it is 5 (Refer to Page 3 in this document), but I believe our org has ...
0
votes
0answers
8 views

Save Email Conversion

I'm trying to use the Lightning Experience UI to send an Email from a Record Homepage via the Activity tab. That way the email that sends from this UI is saving (in a not surprisingly way) in the ...
0
votes
0answers
18 views

records of record owner is not showing to the that record owner in report in salesforce

there are few records created by the user. Now when he created report for those records, the data are not visible to him in report. My question is if he is the owner of records himself then why he ...
1
vote
1answer
11 views

Customer Community licence is not allowing to give view all access on account

Organization-wide default is Public read/write. I want a community user to access all account from community. I tried to give view all access through permission set but getting an error - . The ...
0
votes
0answers
10 views

Salesforce Soap Integration With XML node generation

Req :- Custom Settings :- Vacancy Media Fields:- Name Type Area Path Map -- mapvacancymedia1 i have created a ...
0
votes
1answer
15 views

Salesforce Lightning Component Picklist Value

Hi have a requirement as follows:- I want to make a Picklist value in the lightning component. After using the lightning:Select still i am not able to get the values provided in the list. Codes as ...
2
votes
2answers
16 views

How can you get the caret position when working from an event?

Looking at the Locker documentation they list selectionStart as being a valid attribute, but I can't find a way to access it. I am trying to write an input masking utility, and everything works fine ...
2
votes
0answers
16 views

Errors with Web Server OAuth Implementation

I am trying to implement Web Server OAuth flow from one Salesforce Org to another. Following is the Class which contains the logic. I am hitting custom rest api to insert Accounts using the access ...
0
votes
1answer
18 views

How to currentdate.getDate() in JavaScript for Lightning Web Component?

I'm trying to write a test class to automate my several tests in register forms, but the JavaScript currentdate.getDate() isn't working for some reason that I don't know. I'm trying the following: ...
1
vote
1answer
23 views

Possible to view all formulas of formula fields on an object?

Getting this error: " This record could not be loaded because it includes too many formula fields with complex formulas, or too many custom fields. Ask your Salesforce administrator to remove some ...
1
vote
1answer
43 views

Git unable to update URL base

Trying to start learning DX. I have the project set up and downloaded a simple package from a demo org. But I get an error when I try to commit to Github. /Desktop/GloboHealth/globohealthDX$ git ...
0
votes
2answers
15 views

Inner Class Cover in Test Class

Please help me why my code coverage is showing 0% . See my class code and test class code where I have written wrong? Class public class InnerClass { public class Wrap { public string ...
0
votes
0answers
18 views

get image from Attachments related to record and render into lightning:inputrichtext as a preview [on hold]

I need to display Images inside lightning:inputrichtext as a preview. The image will be related record from Notes and Attachment object. Is this is possible?
0
votes
1answer
22 views

Trigger to add contact in Account Related list when contact is added through lookup on Account

I have one lookup field (Add contact) on Account. My requirement is that when we update the account lookup field and select a contact. Then that contact should get attached in the related Contact List ...
1
vote
0answers
20 views

I am clicking delete record and record are getting deleted but it does not refresh the table in LWC

import { LightningElement, track,wire,api } from 'lwc'; import getContactList from '@salesforce/apex/ContactController.getContactList'; import deleteContacts from '@salesforce/apex/ContactController....
0
votes
1answer
31 views

Trying to create a new User, cannot create new user because of profileID

I am trying to create a new user inside of Salesforce using nforce. However, every time I create the user I get the error: FIELD_INTEGRITY_EXCEPTION stating Profile ID: id value of incorrect type: ...
0
votes
0answers
17 views

After Processing 20 records in batch how to send an email [on hold]

Can anyone please help me, We have a batch class. Suppose we have a batch size of 20 i.e.we are running the batch for 20 records at a time. After processing of every 20 record I want to send an email ...
0
votes
1answer
19 views

How to execute class or method after update external id from post callout

I have a custom object in Salesforce with a set of fields. Some of the fields I sent over by an invocable method which calls a future method to send the first set of fields to entity in an external ...
0
votes
2answers
24 views

Locking rows at the last minute

I have a utility routine (pasted below) that I use for all writes to the database which lets me catch errors. This works perfectly in all but one of my orgs. In that org, I generate a ton of ...
0
votes
0answers
10 views

Apex Multipart HttpRequest - With JSON and BLOB

I am trying to consume a Google Drive API to create a file in an ApexController. I was successful in creating a file in the root folder without specifying a name using the code below http h = new ...
0
votes
0answers
22 views

Setting Up New Scratch Org

I am setting up a SFDX Scratch org for the first time and am having trouble understanding how everything connects and am missing a few steps: Tools I am using: BitBucket CLI or SourceTree intellij ...
0
votes
0answers
17 views

lightning component to sort task based on status then second priority is created date

I am trying to sort the lightning component of task based on status then by created date. When I click on sort by Status, it should update the second sort of created date by ascending. So in the below ...
0
votes
0answers
7 views

Pushtopic for streaming api

I am currently trying to set up a stream api for email message. The problem I am currently having is that Pushtopics do not support email message(that I know of). Does anyone know of a work aound for ...
0
votes
1answer
13 views

Combine two List<Map<String, String>> for unique list

How can I combine two lists of maps so that only the unique values in the list remain? I thought about doing some nested for loops to compare the two lists, but it seems a bit messy. Is there a ...
0
votes
1answer
18 views

Trigger for First/Most Recent Campaign on Contacts

trying to write a simple trigger for populating a couple of custom lookup fields on Contacts. We have 2 custom fields called "First Campaign" and "Most Recent Campaign". I'm trying to get "First ...
0
votes
0answers
9 views

Multiple recordEditForm forms field value check

I have a requirement that must replace the functionality of a third-party software in which a list of opportunity team member roles must all be assigned in a single screen. To accomplish this, I have ...
-1
votes
0answers
31 views

How to use custom setting in code

I need to stophard coding profile name @AuraEnabled public static List<User> getCurrentUserBusinessUnit(){ string curUserBusinessUnit; List<User> curUser = [select Id, ...

15 30 50 per page