All Questions
132,607
questions
-3
votes
0
answers
17
views
How do I write a test class for this trigger? [duplicate]
trigger PreventChecklistAgendaItemRecordsFromDeletion on EN_Agenda_Item__c (before Delete) {
List<RecordType> recordtype = [Select id,Name,SobjectType from RecordType where Name = 'Checklist'...
0
votes
0
answers
25
views
Arbitrarily splitting an Address
This is a bit of a weird one, but due to a limitation with the Bringg/Zenkraft integration, Shipments cannot be created if either address line 1 or address line 2 > 35 characters. The issue is that ...
0
votes
0
answers
14
views
Schedulable batch Test execute org data and throw database Error
Test class
User u = new User(Alias = 'xxx', Email='xxxxx', LastName='Testing', LanguageLocaleKey='en_US',
LocaleSidKey='en_US', ProfileId = xxxx,
TimeZoneSidKey='xxxxx', ...
0
votes
0
answers
10
views
FLOW_ELEMENT_ERROR|Operation not valid for this user type when creating Oppt related to contact via PlatformEvent Triggered Flow
I have a flow that triggers by a trigger that publishes a platform event, in the flow I do some fields updates, and I create a task and an opportunity related to the targetId passed from event to flow....
1
vote
2
answers
20
views
Upsert Product2 by ExternalId field fails with a strange error
I have read the documentation about ExternalId field on Product2 standard object
ExternalId
Type: string
Properties: Create, Filter, Group, Nillable, Sort, Update
Description: The unique identifier ...
-1
votes
0
answers
15
views
Not able to see debug logs for class which implements commercepayments.PaymentGatewayAdapter salesforce OMS
I have created Adapter class in salesforce using Example Adapter classes provides on git. It captures and returns the payment as expected. But if requestType is commercepayments.RequestType....
0
votes
1
answer
18
views
2GP Managed package Custom Field visibility
I've a managed 2GP with some CustomObjects. I set their visibility to public like this:
<visibility>Public</visibility>
I've also a CustomField on the existing Opportunity object. But the ...
-1
votes
0
answers
9
views
SFMC A/B Testing link tracking
want to use the SFMC A/B testing functionality for some subject line tests, curious if there's a way to append a variable to the tracking that will allow me to see which group (A/B/Remainder) a ...
1
vote
1
answer
29
views
Salesforce Account Merge Trigger Execution in Bulk Scenarios
I came across the information regarding the execution order of triggers during the merging of Salesforce accounts, as discussed in this SF Stack Exchange thread: merge-trigger-execution-order.
The ...
-1
votes
0
answers
15
views
SQL CASE Statement is not working in SFMC Query
I am writing a query to get the specific value based on the CASE Statement. I am checking with two conditions. One for the value of the column name and other on the if another value exist in the other ...
0
votes
0
answers
19
views
Bulk API 2.0 and Attachments Upload
Does Bulk API 2.0 support Attachment upload related to Account (for example)?
I checked the documentation and it shows Binary attachment upload using Bulk API and not V2.0.
Reference link - https://...
1
vote
0
answers
12
views
Documentation of allowed HTML formatting for the Lightning Knowledge Rich Text Editor?
Is there any documentation available of exactly what HTML is allowed in the Lightning Knowledge Rich Text Editor?
Rich Text Fields in Knowledge Articles (SF Help) states "When you paste content ...
0
votes
0
answers
9
views
Best design for emailing groups of Users that are collaborating on a Case
We're using Cases, but long-story-short, we're not really using Service Cloud licenses. We have a heavily restricted form of Service Cloud licenses.
We need to be able to have teams of people across ...
0
votes
1
answer
28
views
How do I add an event to a specific public calendar using a flow and "New Event" action?
First let me say that I'm new to salesforce so forgive me if I should be doing this another way.
I have a record-triggered flow with the goal to add a sales appointment to a public calendar named &...
-1
votes
1
answer
19
views
In Salesforce, if there are multiple FLOWs active for the same object then does trigger fired only once or will it be fired for each FLOW
In Salesforce, if there are multiple FLOWs active for the same object then does trigger fired only once or will it be fired for each FLOW (assuming each FLOW updates different fields)
0
votes
1
answer
17
views
Salesforce ListView Deployment Error
How to solve 'Invalid scope:mine' Deployment Error While Deploying Salesforce ListView Filter (ownerbased) using VS Code.
-3
votes
0
answers
21
views
Create Trigger for counting Total no of 'Partner cases' and Total no of 'Customer Cases' on account. Partner cases and Customer Cases are record type [closed]
Create two record types named as “Partner Case” and “Customer Case” on Case Object. On creation of Case populate the total number of Partner Case and Customer Case on Account object. Create Custom ...
-1
votes
0
answers
19
views
My Lightning Record Page for a custom object Patient__c. After some commits my record detail page refuses to load and gives this error
Uncaught (in promise) DOMException: Failed to execute 'structuredClone' on 'Window': #<Object> could not be cloned.
at V.wiredFlexipageTemplate (https://ruby-data-6093-dev-ed.scratch....
0
votes
1
answer
44
views
SQL Query Issue to get last 12 Months data from a DE in SFMC
I am trying to get the data from a DE for last 12 months but when I am running my Query, I am only getting data November 2022 but I want to have data from each month after from November 2022 till now ...
0
votes
1
answer
22
views
ContentDocumentLink Trigger successfully blocks file upload on Org but fails in Dev Console
I want to block file uploads (ContentDocumentLink) on a FundingOpportunity object when status is Canceled or Closed. It works fine in the org, but it fails when I tried it on Dev console.
A File is ...
0
votes
0
answers
22
views
Record Id is not populating to LWC in Record Page in Community (Experience Cloud)
I have a problem capturing the record id from a record page in communities.
I followed Get RecordId in LWC From Community Page intructions but it's not working for me and i saw that is not working for ...
0
votes
1
answer
20
views
Method does not exist or incorrect signature: void date() from the type Date
As per the title, I am encountering this issue when running an anonymous apex script:
List <ServiceContract> serviceContractList = [SELECT Id, Status__c, Status FROM ServiceContract WHERE ...
-2
votes
1
answer
30
views
Implementation of hash map
public class Person {
private String First_name;
private String Last_name;
public Person(String First_name, String Last_name) {
this.First_name = First_name;
this....
0
votes
0
answers
23
views
update the quantity and price of of OrderItemSummary
It possible to update the quantity and price of of OrderItemSummary or add new product to order and its order product summary once order is created using connectAPI in commerce cloud. As we have split ...
1
vote
1
answer
32
views
Share Content Version to Admin Users
I am creating my file using the following code:
ContentVersion cv = new ContentVersion();
cv.VersionData = pdfContent;
cv.Title = fileName;
cv.PathOnClient = filename;
cv.Description = 'to-be-...
0
votes
1
answer
32
views
Import File Activity Automation - Change field data type to match Data Extension
I am setting up a File Import automation to ingest a file from the Marketing Cloud FTP to a Data Extension. I am running into an issue where the csv has a field for a newsletter preference say '...
1
vote
0
answers
20
views
Issue with ConnectAPI.NamedCredential Class
I am trying to utilize the NamedCredential Class. The getNamedCredential method works but the getExternalCredential method does not. I am able to see the external data from the named credential call ...
1
vote
1
answer
23
views
LWC Invalid Mutation error when copying data from a @api property
I am passing data from the flow to the lwc component, making a copy of it and then adding a new key-value pair to each item in the array. The below code does not produce any errors but it doesn't work ...
1
vote
1
answer
78
views
Where to share and demonstrate LWC code?
The Playground in the Lightning component library gone, WebComponents.dev redirecting to LWC.studio, the latter announcing its shutdown at the beginning of 2024 - is there still a place to share and ...
0
votes
0
answers
13
views
How to properly configure LWR networkbrand loginLogo from cms
Since we cannot configure the change password branding in the communities using the LWR template, I've found a work around to retrieve and deploy the metadata on this link:
https://ideas.salesforce....
0
votes
1
answer
20
views
How does one delete a CompactLayout via mdapi?
I have a descructiveChangesPost.xml file to delete any components no longer required to which I've added a section for CompactLayouts, but it's not doing the delete. Is it not possible to delete these ...
1
vote
1
answer
22
views
Minimum permissions for a Salesforce Integration license user to create Users and assign permission sets
I am setting up a new Salesforce Integration user (one of the 5 free licenses) to act as the running user for our corporate onboarding/offboarding systems
Username onboard-offboard-integration@...
-1
votes
1
answer
30
views
What is Formula Definition in the Entity Definition and how is it useful to run a report or SOQL query
I would like to know the logic added in the formula field. With the standard/custom reports I can get the list of formula fields created on one entity like case/account/custom objects however to check ...
0
votes
0
answers
42
views
Aura - component.find() called from Promise Returns undefined
I have an Aura component that I'm using as a wrapper for an LWC so that we can utilize the Workspace API (we haven't enabled Lightning Web Security in the org yet). Before opening the workspace tab, I ...
0
votes
1
answer
33
views
Getting error [{"errorCode":"NOT_FOUND","message":"The requested resource does not exist"}]
I want to update the order summery item price and quantify, to archive it i am trying to follow below solutions none of them worked for me. Do anyone here have any idea on what is the issue
I am ...
0
votes
0
answers
23
views
The state of radiobutton is not stable in LWC. I have created a timer function, when the timer function is over then the value is getting fixed
html part
<template for:each={wrongAndRightAns} for:item="answer">
<div class="grid-item" key={answer.key}>
<label><input type="radio" ...
-1
votes
0
answers
37
views
Navigate from one page to another page in Aura site
We have 2 pages on Aura site, Page A, Page B.
Both page have an LWC component.
Page A, has lwc component that has button, on that button click I want to redirect to a new window which should open Page ...
-1
votes
0
answers
24
views
How to calculate number days user has not logged in the org?
I have a scenario where I need to calculate the number of days user has not logged in the org. When I tried to create the formula on the user object i.e TODAY() - LastLoginDate
It's encountering an ...
0
votes
0
answers
40
views
AWS Signature expired (X is now earlier than Y (Z - 5 min.)
I am currently working to integrate SF with AWS (Textract service to be precise) but I cannot get rid of this message: {"__type":"InvalidSignatureException","message":&...
4
votes
2
answers
183
views
How to prevent LWC Wire from loading data automatically?
I would like to prevent the @wire function from loading automatically on initialization and instead load it on command.
Currently I am using refreshApex() now to load it on command, but I don't want ...
2
votes
1
answer
47
views
What is the meaning of Type field on PermissionSet standard object in Salesforce?
Documentation page about permission set provides a limited information about Type field.
Type: reference
Properties: Filter, Group, Nillable, Sort
Description: Available in API version 46.0 and later....
0
votes
1
answer
21
views
Salesforce - Hide/ show list view button based on profile
I have a custom 'Create Case' button added in the list view buttons for my custom Case object. For admin profiles I want to show the standard 'New' button and the custom 'Create Case' button to create ...
0
votes
0
answers
26
views
How to get field level permission of any specific profile using metadata api with simple_salesforce [duplicate]
I'm working in Python with the simple_salesforce library.
I am not able to get field-level permission using metadata API (without using a query).
0
votes
0
answers
51
views
'activityInstanceId' field on execute request of a custom activity and where to find it in journey history?
I have a custom activity that uses activityInstanceId field from request as unique id for each request. I now need to somehow connect that id that I save on my side to contact for which activity was ...
0
votes
1
answer
32
views
How to Route Replies to Salesforce Email Alerts Back into Salesforce Instead of Outlook Inbox?
I am facing a challenge with email alerts in Service Cloud and would appreciate any guidance or suggestions.
Context: A flow sends an email alert to the customer. The customer receives the email from ...
0
votes
1
answer
25
views
Is it possible to (Unlocked) Package field encryption settings?
I'm having issues proving whether it is or isn't possible to have field encryption settings packaged as part of an Unlocked Package (with a Namespace) and this encryption be enabled automatically upon ...
-2
votes
0
answers
18
views
How to Display Images in Salesforce UI V2 plugins.Any Sample code in place
Sample code to display images in UI V2 Plugin?
0
votes
0
answers
36
views
PDF from URL is not opening in Modal POP UP in LWC
I have requirement when I click on button it opens the POP up and in that PDF get loaded from URL within that pop up and on close button pop up get closed.
So below is my code it is working fine on ...
0
votes
1
answer
26
views
Place lightning-input message next to element
I'm using this one to display
<div class="slds-grid slds-wrap">
<div class="slds-form-element">
<label class="slds-checkbox_toggle slds-grid"&...
0
votes
0
answers
36
views
LWC custom Tree Grid Generation
I am trying to create custom tree grid component because of some limitation of standard salesforce lightning-tree-grid. The requirement is based on the data custom tree should automatically generate ...