All Questions

1
vote
2answers
517 views

Hide convert button with lightning component hack

One function we would love is to not show the convert button on the lead unless it's the right time to convert (ie. the correct stage with all data gathered). I have created a Lightning component ...
1
vote
0answers
11 views

Pagination error

I want to do a paging, but I'm having some problems. When I select the page number in pagination, the "selected" class is applied to the position and not to the number itself. My HTML: <template&...
1
vote
1answer
37 views

SFDX error: Only one default export allowed?

Working in LWC, after weeks on this component, I'm now getting this error that won't allow me to push to scratch. [Line: 993, Col: 0] LWC1503: Parsing error: Only one default export allowed per ...
0
votes
0answers
3 views

How to load and use external library?

I don't know how to use the library of Pagination in a lightning web component but I can't use the example method: $('#demo').pagination({ dataSource: [1, 2, 3, 4, 5, 6, 7, ... , 195], ...
0
votes
1answer
533 views

How to export data using reports from SFDC programmatically?

We have an issue where we have to manually click Export Report on SFDC reports though the UI on many reports. These reports have several filters and filter logic such as "(1 or 2) AND (4 AND 1)" and ...
1
vote
0answers
5 views

How to customise community generic error pages

I have a community using URL: https://xxx-mydomain.cs83.force.com/community/s/ When I remove the /community/s/ I get a salesforce branded error page. I want the generic Salesforce error page to be ...
0
votes
1answer
15 views

How can I resolve these two errors in trigger handler

public class AttachmentTriggerHandler { public static void onAfterInsert(List<Attachment> attachments) { handleCreditReportAttachments( attachments ); } public static ...
4
votes
3answers
3k views

Delete/Rename lightning Component

I have two queries Is there only one way to delete lightning Component? that is Dev Console File--> Delete How To Rename Lightning Component?
1
vote
1answer
566 views

Triggered send emails tracking in Salesforce, but NOT showing up in reporting. Missing Send Definition

Ok we have been banging our heads against the wall for weeks on this. We are using Salesforce and Marketing Cloud with the Salesforce connector. Our workflow looks like this TRIGGERED SENDS We have ...
22
votes
3answers
772 views

What is a use case where one would use an SObject as a Map key?

In Dan Appleman's book Advanced Apex Programming, he explains how using SObjects as Map keys (i.e. Map<SObject, *value*>) is supported but it's poor practice, since the key is actually ...
0
votes
0answers
9 views

Is there a way to use a “Create New” lightning component to pre-populate a lookup once the record is created?

Here's my use case: I am creating a Quote. We have a custom field on the Quote called Listing. Sometimes, the listing doesn't exist and so we want them to be able to create the listing directly from ...
0
votes
3answers
802 views

How do I sort a wave dashboard by pipeline order?

I see in the editing section, that you are able to sort the dashboard component by the bar length ascending or descending, but I can't seem to find where you could sort by the grouping, for example, ...
3
votes
1answer
29 views

Can a lightning web component know the difference between console and standard view?

I created a LWC which displays a link to an object... and I want that link to "open in a new window" (target "_blank") if the user is viewing it via standard navigation view (non-console). And, if ...
0
votes
1answer
848 views

Automatically Send Email using email template

I have a VF page thats suppose to send mail out using a template. Now what it does, is create the attachment and opens the template with the attachment as well as autopopulated addresses. Now the ...
0
votes
1answer
15 views

Lightning Component - Copy Canvas to Clipboard

I'm trying to copy the image of a canvas to my clipboard in a lightning component using javascript. So far I have this in my helper: copyData: function() { this.canvas = component.find("canvas")....
0
votes
1answer
16 views

How to add standard field lookup filter in to the change set?

I need to add lookup filter modification in to the change set which is done to a standard field in the Contact object. Is that possible to do?
1
vote
1answer
1k views

Lightning:datatable number formatting

I have created a lightning:datatable to display order lines. The order lines are fetched via a REST call. I parse the JSON response and add to the datatable data attribute. Everything works fine but ...
-3
votes
1answer
17 views

Does code coverage effect lightning pages in target org?

I am using codeCoverage() method with 1000 lines of i++; to test a package. I did not actually wrote the required test class because this is just a test org. I have lighting pages which are not ...
1
vote
1answer
505 views

Some households are named Anonymous Household for NPSP when importing contacts

I'm importing contacts into SF. Creating contacts automatically generates a household record using the "Last Name" + "Household" naming pattern. However, when doing so, I'm getting a really strange ...
0
votes
0answers
19 views

Test not covered execute method

Batch class not covering the executed method
3
votes
3answers
539 views

Email BCC to Salesforce Function Not Triggering Workflow Rule (Task Field Update)

I've set up a workflow rule to update the activity TYPE field based on the subject of the email. AND( BEGINS(Subject, "Email: Fwd:"), ISPICKVAL(Type, "4. Email Out"), NOT(ISBLANK(WhoId)) ...
0
votes
0answers
6 views

Live Agent - Request for File

Does any body a very good idea of linking files in live chat transcript. Currently we can link it to Case Or contact or Account or custom object... Is it possible to link to to chat transcript ...
2
votes
1answer
815 views

Google Apps Script returns null for a cell value

The values in a cell return null if they are of type number, date, etc. I get the field names and values from Salesforce object firstly. I change them and update them. If the fields are text fields in ...
0
votes
2answers
31 views

How to add custom css to the leads tab

In my custom tabs i simply add the following code to the component: <ltng:require styles="{!$Resource.globalcss}"/> and it loads a static resource css file. How can i load the same css file ...
3
votes
1answer
979 views

Dynamically setting value of lightning combobox in javascript?

I have dynamically created lightning:comboboxes that are instantiated in my JavaScript controller for my lightning component. In my callback function after the component is created, I want to set the ...
11
votes
1answer
600 views

mCustomScrollbar not working when Locker Service is enabled in Salesforce-1

I am having problem when using mCustomScrollbar (GIT Hub) when locker service is activated. During initialization of mCustomScrollbar in the helper, it throws the following error [TypeError: ...
0
votes
1answer
549 views

Email Template Custom Font

Is there any way to add a custom font on an email template? @import works on some email clients, but not on GMAIL for example, same as @font-face or any CSS approach I've taken. I've also tried copy/...
1
vote
0answers
26 views

How do we name a Visualforce PDF without Apex (Filename)

Here is our Visualforce Page Attributes In this example we are trying to name the PDF "Hello" <apex:page title="PDFPage" renderAs="pdf" standardStylesheets="false" standardcontroller="...
-1
votes
1answer
23 views

I have created custom field in Activity Task in salesforce

I have created custom field in Task whenever the Escalated checkbox field is checked the Case comments should update "This case is escalated" in salesforce. How to do that?
3
votes
1answer
555 views

How to use soql queries on multiple look up relationship object to retrieve specific data

I have 4 custom objects (as shown in the schema diagram). And they are associated using a lookup relationship. Now the objective of my question is to retrieve Product profile(product) for a given ...
0
votes
1answer
331 views

Display Json data in inputfield on dropdown change

I have this below method from which i am doing a rest api call and populating dropdown on vf page on button click. I am also getting city values in Json response. After getting the dropdown I want ...
1
vote
1answer
333 views

How can I target lightning:icon and change its color?

What I want to accomplish is to show 5 stars in each row of a table. The users then can rate each row separately using the stars. However I just cant find out how to target the stars using the ...
0
votes
1answer
32 views

LookupOrderedRows with variable WHERE clauses

As the title suggests is it possible to run LookupOrderedRows with a @variable in the WHERE clause. SET @getAccounts = LookupOrderedRows(@AccountDE, 25, @orderByClause, "location_id", @...
1
vote
1answer
20 views

Unable to navigate to community page using <lightning:navigation

I am using a <lightning:verticalNavigation> which calls a method to redirect to a Lightning Community page. Component <lightning:navigation aura:id="navService" /> <lightning:...
3
votes
1answer
527 views

URL Whitelisting in Salesforce Console

In the Salesforce console, we have an user action that will open the Email tab using the Email Url. For example: ui/core/email/author/EmailAuthor?p3_lkid=001E000000CVCF7&retURL=%...
0
votes
1answer
59 views

Best approach for handling preventing Parent trigger when updated from multiple child objects

I need some suggestions in improving the 'prevent trigger' logic. I have parent 'Lead' object and couple of child objects. I have Trigger Helpers on each of these objects. When these child object ...
0
votes
1answer
28 views

Error while retrieving location coords with navigator.geolocation.getCurrentLocation in LWC

So, I was just trying to get current location by using navigator.getlocation.getCurrentLocation method in Lightning Web Components. When I check if(navigator.getlocation), this returns true. But ...
0
votes
0answers
8 views

Compare Prospect email in Journey to Core data and record a Goal Conversion

I created a Journey and imported prospects to a DE to be injected into the Journey. I import customer data from our CRM everyday that includes all accounts. My "prospects" are customers that did ...
0
votes
1answer
16 views

Is possible to query data from track views?

On Marketing Cloud, I am using the javascript tracking code to see how many and how has accessed my webpage. I can see the report at Web & Mobile Analytics tab. Is possible to access this data ...
3
votes
2answers
2k views

Can't delete Connected App

In an attempt to troubleshoot an issue I created a couple of connected apps. I would now like to remove them. But I only have an Edit link and a Manage link. I am logged in as a System Administrator ...
0
votes
0answers
11 views

PageReference redirect shows old data on refresh

I have a custom detail button on Contact that launches a VF page with an Apex class that updates data on the Contact record. At the end of the Apex class, I have a PageReference redirect, but when the ...
1
vote
0answers
16 views

How to dynamically display a content document image on a site

I have created a dynamic url to display a logo image from content document. I uploaded the image and logged into the org and can see the image. When I use an incognito window the link gets broken but ...
0
votes
2answers
330 views

Pass parameters through Redirect URI in oauth flow, to know sandbox or regular

I use the oauth flow to allow users to authorize my Salesforce app to access the API on their behalf. Depending on input in my app, I either prompt them with https://login.salesforce.com/services/...
0
votes
0answers
10 views

I'm facing issue in Salesforce Classic Home Page Narrow Component in Subscriber Org

I have a managed package which includes Salesforce Classic UI HomePage Component display Visualforce page. Now it's not working in any subscriber org. if we copy the page URL by using inspect the ...
0
votes
1answer
28 views

Does granting access to external users without purchasing licenses violate the MSA?

I have seen at least one major consulting firm (and have heard of another) develop custom authentication solutions on top of Communities that enabled external users to access data within an org, ...
1
vote
1answer
17 views

How to add a generic method for Encryption and decryption when using multiple times in the code?

I am trying to encrypt two fields when record is submitted using VF page. As there are multiple functions in my class I am encrypting and decrypting multiple times as needed. Is there a way we can ...
0
votes
1answer
12 views

View exit criteria of running version - Journey Builder

How can I see the exit criteria for a running journey? The exit criteria button is greyed out for the running version. Pretty sure I currently have criteria set to EXIT IF status = instructed but a ...
0
votes
3answers
30 views

New instance of Custom Object

I'm trying to create a new instance of an existing Custom Object. I have modified an existing object in the sandbox environment and want to preserve the original object when I push to production. ...
5
votes
1answer
331 views

Lightning Component and JS error Spring 18 (API V42). Working fine on API V41

I have traced the execution of code and as soon as the execution of our code is over it goes straight to an Error from SF. no errors are thrown prior to this and the last line of code executed is },...
12
votes
5answers
328 views

What are the real benefits of using Salesforce DX?

Hopefully this doesn't across as a rant. I'm genuinely interesting in objective feedback as to what are the benefits of using DX. I know all feedback is opinionated, but one thing is saying "devops ...

15 30 50 per page