All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

LWC platform events timing out?

So I have 2 LWC components, one which publishes a platform event (a text message from an input box) and another one which listens to it and then resposnds by publishing a platform event of its own. ...
0
votes
1answer
10 views

Querying with parent-child relationship in where clause

I'm trying to get Lead details for all leads that have product of interest like "Some Product" AND their status is "Act now" AND one of their campaign names is "bar" or &...
0
votes
1answer
13 views

How to query records processed between last batch job if I'm running batch class five times a day

I want to process only those records in my batch job which are updated since the last time my batch job ran. Basically, I'm running my batch job five times a day and want to process only those records ...
0
votes
0answers
9 views

How to open a new form on top of the current one when clicking the button?

I have a "new" button in my aura component (lightning: button). When I click on this button, I want to open a new form ("New Contact") on top of the current form, in which I need ...
0
votes
1answer
24 views

Why do we need two master-details relationships while creating many-to-many

I'm preparing to SF Dev1 exam and noted that they suggest using MD instead of Lookup. What can be the reasons using this approach?
0
votes
1answer
21 views

Build SOQL dynamic query in LWC component

Is it secure to build SOQL queries on front-end side (lwc component) and pass them to Apex for execution?
0
votes
1answer
22 views

Hi I am new to apex , please help me out with this error

public class EmployeeInfo { public integer employeecode; public string empName, address, emailId; public decimal salaryAmount; pubic boolean isActive; public date joiningDate, ...
1
vote
0answers
12 views

This app can't be upgraded: Invalid Upgrade: The currently installed version does not share a common ancestor with this version

I am trying to upgrade from v0.6 to v0.7 of a Managed Package which uses 2GP. I am getting this error message: This app can't be upgraded. There are problems that prevent this package from being ...
0
votes
1answer
21 views

You can even avoid the limit for maximum CPU time by replacing Apex code and record-change processes with before-save updates in flows

In this maintenance module: Get Hands-on With Flow Before-Save Trigger When Certain Record Changes are Made It states You can even avoid the limit for maximum CPU time on the Salesforce servers by ...
0
votes
0answers
14 views

Does some standard lwc solution to show Account Team (with user Icon) exist?

Let's say we are not able to use standard related list and want to implement custom lwc. Does standard solution we can use exist? (see attached picture, please)
0
votes
1answer
13 views

Issue with Batch Apex Updating Results from AggregateResults SQOL Query

I have an object Referral__C where we add a NHC_Tracker_ID(Nhc_Tracker__C another object). I want to update the fields on NHC tracker by count Referrals and Unique addresses related to Referral. My ...
0
votes
1answer
16 views

knowledge__kav: System.NullPointerException: Attempt to de-reference a null object

I am unable to fix the error System.NullPointerException: Attempt to de-reference a null object on my trigger. Could someone help? Thanks trigger Knowledge_kavKnownErrorSubscription on Knowledge__kav (...
0
votes
1answer
18 views

Difference between a straight query and a relationship query

I'm trying to understand the performance difference or query execution time between direct SOQL query and relationship query. For example, I need data from Account and User object. sap_id__c is the ...
0
votes
1answer
14 views

Apex Visualforce page styling remove underline and text align

This image shows the output of the Visualforce page: How to text-align Opp Created Date to the right the page? How to remove all the underlines? here is the code: <apex:pageBlock > <...
0
votes
0answers
27 views

Unable to clear a text area field in lightning component with below code

I am trying to clear a text area field in lightning component with below code <aura:attribute name="Message" type="String" /> <aura:attribute name="disableButton"...
2
votes
1answer
40 views

New Spring 21 sandbox SOQL query fails on encrypted Account Name

Spun up a new Spring 21 sandbox from our Shield Platform-encrypted PROD org. PROD has Account.Name deterministic, case-insensitive encryption. Created a new Account with name = foo Went to ...
0
votes
1answer
27 views

LWC: JS based Integration or apex based rest integration, which is better and why?

In LWC, what are the pros and cons of doing integration directly from JS (with help of methods such as fetch) when compared with normal apex based rest integration? Please consider the situations of ...
0
votes
1answer
11 views

Navigate to Opportunity record with opened “Add product” window

How programmably navigate to Opportunity record with opened "Add product" window?
0
votes
1answer
15 views

Rest API FATAL_ERROR System.QueryException: List has no rows for assignment to SObject In Test Class

Hi All, I'm unable to fix the code and giving the error as "FATAL_ERROR System.QueryException: List has no rows for assignment to SObject " in test class. I have implemented Apex class for ...
0
votes
1answer
24 views

Throw an exception in Apex if attachment is null

I have a Visualforce form that takes attachments of which I need to make required in order for the user to proceed to the next screen. Since the record doesn't get inserted until the end of the multi-...
0
votes
0answers
12 views

custom icon in lightning component is not working

I trying to display a custom icon from the static resource. I have implemented all the steps correctly but still, the icons are not visible component is : <aura:component implements="...
0
votes
2answers
21 views

Email Domain Segments Data Extension for IP Warm UP

We are starting our IP warm up process and have never done this before. Since we are transitioning from Pardot to Marketing Cloud, we are building lists of our most engaged subscribers in Pardot, ...
0
votes
1answer
39 views

access device camera from lwc

Is it possible to access device camera from lwc. I am trying the below code but it is not working - HTML <template> <template if:true={video}> <video autoplay class="...
0
votes
0answers
21 views

Add button in account, after clicking it will show popup which will ask for user's details after clicking submit add the user to account teams?

component part: <aura:attribute name="AccountTeamMemberList" type="AccountShare[]" /> <aura:handler name="init" value="{!this}" action="{!...
0
votes
2answers
27 views

how to fetch contacts using datatable in lwc?

contactslist.html <template> <lightning-datatable key-field="id" data={data} columns ={columns} is-loading={tableLoadingState} > </...
1
vote
0answers
23 views

getting “[NoErrorObjectAvailable] Script error” while using navigating to record page

I have 2 child components in a parent and i am using the navigation in parent js to navigate to the contact record based the id from the child1 component but i am getting the error "[...
-5
votes
0answers
35 views

Can anyone help how to write test class for the below trigger please [duplicate]

account related contact count and Account related contacts sum count on Account(please write test class for the below code) trigger UpdateAccountFields on Contact (after insert, after update, after ...
2
votes
0answers
29 views

Trying to override a global virtual method and receiving @Override specified for non-overriding method

I have a global class which is part of a managed package. The methods in the managed class are all global virtual. In the global class I have 2 methods; global virtual Decimal ...
-1
votes
0answers
19 views

How can I create a custom lookup field that displays a list of products?

How can I create a custom lookup field that shows the list of filtered products (product2)? that is, I have a picklist field that shows the product catalog records (sobject) and it should show the ...
0
votes
0answers
16 views

How to create a flow to automate the opportunity creation from user input in a form?

I was trying to create a flow that asks for inputs when run by a screen flow, name, surname, birthdate, a file upload, quantity of the product, and an opportunity. So I want to create a contact with ...
1
vote
1answer
30 views

Is it possible to detect which external Id was used inside the trigger?

Is there a way to identify inside a trigger (eg. before insert) which field is being used as external Id? The problem I have is that there is an external system upserting some records on an object (...
0
votes
2answers
19 views

How to add the 'AND' condition in dynamic query for multi select picklists?

List<String> newMultiSelectList = new List<String>(); newMultiSelectList.add('Pro-Life'); newMultiSelectList.add('Establishment'); newMultiSelectList.add('GOP'); string value = '(\'' + ...
1
vote
0answers
16 views

Options to lock Header and Footer sections in Word when Visualforce Page is rendered as word

I am looking for options to lock the header and footer sections in the word document when Visualforce page is being rendered as word. Any help would be appreciated! <apex:page sidebar="false&...
0
votes
1answer
26 views

Validation rule that restricts a status change based on the value of another field

I have a picklist on account, one of the values is "active" and another is "proactive". I have another field called "account minimum" (number field). In order for the ...
0
votes
0answers
14 views

Api Call to upload multiple document when case is approved

I'm looking for the Api to to push the attached documents from case to external system when case is approved.This is my first time to write the API (Please check the code below ). I have no idea how ...
0
votes
0answers
5 views

account based entitlement automatically added to cases

community. I have an issue with automatically adding entitlements to cases created manually, from form to case in community and from web/chat. I found a solution here, but I'm not sure it actually ...
0
votes
1answer
20 views

SOQL UserName and UserRole

Line: 5, Column: 1 System.SObjectException: SObject row was retrieved via SOQL without querying the requested field: User.UserRole In the debug statement if I add UserRole.DeveloperName i get the ...
0
votes
0answers
13 views

Issue with establishing handshake for streaming push topics

I'm trying to make a Lightning Web Component that uses a PushTopic subscription, and I'm having a problem with the system not subscribing correctly. I went to debug it with WorkBench to make sure my ...
0
votes
2answers
23 views

Find users with the Manage Encryption Keys permission with Apex

I'm trying to find users with the Manage Encryption Keys permission. I want to ensure only specific users have this permission, and I'd like to do this without reviewing every user in my Salesforce ...
1
vote
2answers
58 views

Data Extension - Date record written

I would like to know when each record in my Data Extension was inserted. Is there is a system level way of doing that? I'm aware that I can add a field to do this that will add the system date at the ...
0
votes
1answer
26 views

Data Extension Name vs External Key

The Name identifies the DE in the system whereas the External Key within the scope of API calls. Is there any reason to not give them the same exact value? Anything i am missing about Name vs External ...
0
votes
0answers
14 views

Conditional Logic Web to Lead form [closed]

I'm trying to create conditional logic for if/then situations. I would appreciate help with the html and the JavaScript, as I have little knowledge. However, I know enough to apply the same logic to ...
0
votes
0answers
19 views

Enable Opportunity Teams/Opportunity Split in scratch org definition file

Is there a way to enable Opportunity Teams in a scratch org definition file? I tried this in my file but it didn't work. { "settings": { "opportunitySettings": { ...
3
votes
2answers
71 views

SFDX: Authorize an Org hangs after login attempt

All, I am on a Windows 10 laptop with the latest patches and updates from Microsoft Version 10.0.18363. When I attempt to Authorize an Org it opens Google Chrome Version 88.0.4324.190 (Official Build)...
0
votes
2answers
10 views

Constrain child picklist based on parent picklist

I have a Case object which has 'Category' picklist with values 'Plumbing','Electrical' etc to handle the issue customer is reporting. Need to have a child object 'Parts' and it needs a Parts Picklist ...
0
votes
0answers
12 views

How to Populate Data from a DE in a Cloud Page - NOT through an email redirect [closed]

My team is familiar with how to populate data from a Data Extension (DE) dynamically in a Cloud Page via the url redirect in an email, but how would we set this up if we're sending an SMS to have a ...
0
votes
0answers
8 views

FSL : Not able to Search Product field in Quick action from flow

BackGround I am facing a weird issue related to quick action and flow, I have created FSL Mobile flow, and inside the flow, I am using quick action, which is creating Work Order Line Record, in Quick ...
0
votes
1answer
21 views

New record Create option not available in lookup field in <lightning-input-field> tag

All I have a requirement to create a custom Case form with few fields. In Contact lookup, I am not able to see the option to create Contact. Can anyone guide me what I am missing in the code. HTML: &...
0
votes
1answer
23 views

Apex managed sharing and how to set up recalculating

SF admin here, writing my first Apex trigger, and I need your expertise! I am learning Apex Managed Sharing, and I have set up a trigger that works when tested in sandbox. We have a custom object ...
0
votes
1answer
42 views

Trigger confusion

trigger to block more than 2 contacts per account. This trigger is working fine on after insert. But I have confusion that it should be on before insert as we want this trigger to work before ...

15 30 50 per page
1
2 3 4 5
2258