All Questions

0
votes
0answers
11 views

CREATE CUSTOM METADATA USING APEX

I wrote a little code that creates metadata custom type: public class CreateUpdateMetadataUtils implements Metadata.DeployCallback { public void handleResult(Metadata.DeployResult result, Metadata....
0
votes
0answers
7 views

Enabling State and Country/Territory Picklists

Currently we are using text field to store state and country. Now I we want to enable State and Country/Territory Picklists to maintain data quality in salesforce. If I enable the picklist, what all ...
0
votes
0answers
11 views

Example (with code) of a nicely styled Post Install / Configure page

I want to provide my managed package with a nicely looking Post-Installation Page and I am looking for examples of How to style (markup and CSS) the Visualforce page How to conceptually and visually ...
2
votes
0answers
8 views

Don't see option “SFDX: Push Source to Default Scratch Org” in the command palette in VS Code

I have an sfdx project opened in VS Code as workspace folder. I don't see the option for "SFDX: Push Source to Default Scratch Org" in the command palette. Other commands like "SFDX: Refresh SObject ...
2
votes
0answers
11 views

Should I use List custom settings in my managed package app?

BACKGROUND I am working on a managed package application and I need to store some configuration data. This data is supposed to be edited by admins in the subscriber org. The setting simply stores ...
1
vote
0answers
14 views

I'm not able to access DOM element even in “afterRender”

I'm trying to create a canvas in my custom lightning component. This is a child component of another component. The canvas draws few charts, and the methods are called only after both the script(...
0
votes
0answers
5 views

Cannot find records in OpportunityShare

I have granted a User access to an Opportunity record through an Opportunity sharing rule. Now I can see in the UserRecordAccess Object that the User has access to this particular Opportunity record. ...
0
votes
1answer
12 views

How force:recordData identifies the sObject type?

In lightning:recordForm we give objectAPIName but in force:recordForm we do not specify any such attribute So, How does force:recordData identify the sObjectType? Assuming there is no value for ...
1
vote
1answer
25 views

Why without the JSON.parse method, I can't sort the data in lightning-datatable?

I'd like to understand the usefulness of the method JSON.parse in the JS file of a lwc when we want to perform certain actions on a list of objects retrieved from our apex controller. I give you an ...
0
votes
0answers
13 views

Add report in lightning component

I am trying to add a report as iframe in lightning component, had turned off CSP, but when loading the lightning component, page gets redirected to the report page instead of showing report in the ...
1
vote
0answers
18 views

How to Address Daylight Savings Complications when Converting Date to Date/Time?

Background My org's timezone is GMT+10 or GMT+11, depending on whether or not daylight savings is in effect. I have a flow which takes a date (StartDate) and converts it to a date/time value. I need ...
0
votes
1answer
17 views

update Account Record Type by clicking a button in the lightning component

I have a component with 3 button with name of record Type. I need that when I click on a certain button, the Record Type of the account record will be update. that's what i have: ComponentButtons....
1
vote
0answers
12 views

lightning:datatable - is it possible to add multiple urls on a single cell?

Using Lightning:datatable, is it possible to set different examples of a record(for example 5 accounts), and make those 5 accounts redirectable to the record page layout? Let's say I have a column ...
0
votes
0answers
16 views

Navigation works in a strange way in community

I have a list of custom objects made from object pages in community. When I click on one of the object it the lists, it navigates me to list of accounts instead of details of the custom object. Any ...
0
votes
0answers
20 views

How to show items in list related to current user in community?

So I made pages with a list of custom items and SFobjects via Object pages. What should I do to filter it in order to display only those records that are connected to current contact?
0
votes
1answer
11 views

Query Data category tree structure by SOQL statement

Using SOQL statement, I want to query the Data Categories tree structure that I have created on Saleforce. How can I do this?
-1
votes
0answers
11 views

Show file in lightning component from a file url

I want to show a pdf file in lightning component modal or in lightning component page using a file url. Please help.
0
votes
0answers
23 views

How to Redirect Flow Users to a URL?

As you may be aware, it's possible to Redirect Flow Users with a Local Action. The example in the hyperlinked article demonstrates how to redirect flow users to a record using the navigateToSObject ...
-1
votes
0answers
10 views

My webassessor salesforce name showing incorrect

My webassessor salesforce name showing incorrect.i called Crypton, and they are telling to raise case with Salesforce, i raised case with salesforce, but still my name is not updated. my details are ...
0
votes
0answers
25 views

Page not available in community

So that's what I made Some pages which represent lists of objects. Navigation to them. When I navigate via admin, everything work. When I am trying to get there from Customer Community User - it ...
1
vote
0answers
17 views

Is there a way to load standard tab content through custom component

Is there a way to load standard tab content like "leads" or "contacts" through custom lightning component? Something similar to the way i can load one custom component in another: <aura:component ...
2
votes
1answer
76 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], ...
1
vote
0answers
16 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 ...
1
vote
1answer
24 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&...
0
votes
1answer
25 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 ...
0
votes
0answers
13 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
0answers
23 views

Test not covered execute method [duplicate]

Batch class not covering the executed method
0
votes
0answers
7 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 ...
-3
votes
1answer
28 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 ...
0
votes
1answer
20 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
2answers
33 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 ...
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:...
0
votes
0answers
12 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
1answer
23 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
1answer
19 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 ...
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
30 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 ...
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
23 views

Get RecordTypeId of Dynamic type

I have lightning component that I want to be able to override any object edit button. I pass the recordId and objectName to the apex controller: public static String getRedirect(String recordId,...
1
vote
1answer
42 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
14 views

owner.isactive is giving inacurate result in SOQL query

I am trying to clean up old reports in Salesforce. The problem is, the workbench query result is flat wrong when it comes to checking if the report owner is active. (owner.isactive). To test this, run ...
0
votes
1answer
20 views

Salesforce EventLogs for Field & Validation changes

does anybody know if salesforce eventlogs picks up logs for whenever a user adds and new field or makes changes to a field on application? Would this show in transaction logs? Here's an example: Bob ...
0
votes
1answer
22 views

Get test failures dynamically (as it goes) when uploading package, but not all at once in the end of upload process

When we are uploading our huge managed package, it takes up to 3 hours for process to finish and the major part of it are taken by tests execution. The inconvenience here is that tests failures are ...
0
votes
0answers
9 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
41 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", @...
0
votes
0answers
14 views

How can the layout of a pageBlockSection be fixed in place so they don't move around when completed?

I have a pageBlockSection that moves/jumps up the screen when a value has been entered. How can I fix this and its contained inputField in place? If I use the following, when the field is changed the ...
4
votes
0answers
50 views

Email Service via Metadata API fails to create from Managed Package

As Email Services can't be packaged in a Managed Package, I allow subscribers to create it after the installation. The code which works in my packaging org fails in productions orgs with: An Apex ...
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 ...
1
vote
3answers
76 views

Is DateWithin30Days(Date 1, Date 2) an Apex Method?

I'm working on the #APEX Unit Testing unit on #TrailHead, and I saw what appears to be a very useful Date method, DateWithin30Days(date1, date2) This would be very useful for some of my projects, but ...
0
votes
0answers
22 views

Lightning page is blank after installing the package in prod

Below is the simple hello lightning page.. Create a Custom Button on Opportunity with following formula. /apex/namespace__testHelloVFpage Name This button testHello. Drag and drop this button in ...

15 30 50 per page