All Questions
132,654
questions
2
votes
2
answers
225
views
Using Apex, how do I monitor the daily @future limits?
This support article indicates that I have a limit of 250k @future methods per day. However, I can't find the corresponding Limit class function to monitor this limit. I've tried:
System.debug(Limits....
0
votes
1
answer
33
views
Change Data Capture and LWC on Mobile App?
I Have a LWC component setup to use CDC to refresh the apex of a varity of objects this intern affects the DOM (icons change / menu options change etc) this works fine on desktop however on the ...
0
votes
2
answers
65
views
Test Code Coverage - Delete DML catch block
We have implemented one method using Apex for delete some records under the class which is without sharing.
In the method, first we are retrieving the list of the records(which needs to be deleted) ...
0
votes
0
answers
27
views
Deleting property tags specified in Lwc meta cannot be deleted?
I have this sandbox env. i use for development, where I for a LWC component have added a
property tag while developing. I now want to remove this property tag, but cannot do so?
I get this error when ...
0
votes
1
answer
33
views
How to send a callout request with Post method using JSON?
According to documentation, the setBody(body) method uses String in the param. But json is a string. If I have a body that I can successfully request using postman with json, how come I'm getting an ...
-2
votes
0
answers
26
views
showPop is not working
//demo.html File
<div class="slds-p-top_small slds-p-bottom_medium slds-align_absolute-center slds-theme_default slds-text-heading_medium">
<div class="slds-m-top_small ...
0
votes
0
answers
27
views
How to link mobile push engagement data with the journey's sent through?
In order to report on the Push message engagement we are extracting the mobile push detail extract. However, we currently don't have any fields in the extract that can help us link the mobile push ...
0
votes
1
answer
25
views
Working with production record types in a managed package
I have to create some triggers and flows in a 2nd-generation managed package that reference a record type developer name. That's fine, except that the record types that I need to reference are ...
-1
votes
0
answers
28
views
Marketing Cloud custom unsubscribe to an external system
We are looking to set-up a custom unsubscribe and publication lists opt-out across different child BU's to update an external system as the main source. Then use API's to update at parent and or child ...
0
votes
0
answers
23
views
Pre populate fields in lightning-record-edit-form in lwc irrespective of the record page
I have a lightning-button which onclick will show a lightning-record-edit-form to create a Case which contains 2 lookup fields
AccountId (Lookup to Account)
Opportunity__c (Lookup to Opportunity)
I ...
-1
votes
0
answers
27
views
Next button not navigating if clicking delete button on each row
How to navigate to next page even if user deletes a row in a data table
0
votes
0
answers
24
views
Email Template Content Block Area - Overwrite CSS
I am working on revamping email templates in Marketing Cloud for non-technical marketers to use. I am running into an issue/haven't found a solution for overwriting CSS in content areas that a user ...
1
vote
1
answer
32
views
Deploying flows through CumulusCI
I have a full Salesforce repository in Vs Code that I deployed with the command cci task run deploy. I had some issues including a recent change of mine which included a new Quick Action that runs a ...
-2
votes
1
answer
29
views
Trigger to get products records on a long text field in opportunity
Hi i am new to triggers need some help to start the following.
Products is a related object on opportunity and it can have multiple records. I need a trigger to summarize (Product Name, Quantity, Sale ...
1
vote
1
answer
38
views
sf v2 CLI does not work with VSCode Salesforce Extensions
I have upgraded to sf (v2) from sfdx (v7)
As per documentation:
Move from sfdx (v7) to sf (v2)
Which involved uninstalling sfdx (v7)
But now when using VSCode the commands it generates no longer ...
-1
votes
0
answers
20
views
Incorrect owner for opportunity while converting lead
I am using an Omniscript -> Integration Procedure -> Dataraptor-> database, call to convert a lead to an account, and do some processing, like create opportunities, generate pdfs etc.,
When ...
1
vote
0
answers
17
views
Where is my Ready/secondary instance located
Our location is Active (or Primary) is easy to determine (as described in numerous places but how can we determine the geographic location of our Ready (or secondary) instance?
I've looked in the site ...
1
vote
1
answer
45
views
notifyRecordUpdateAvailable vs RefreshApex vs RefreshView API
RefreshApex works for me so far in almost every case. I'd like to understand why I would instead use notifyRecordUpdateAvailable or the RefreshView API instead. Or am I horribly misunderstanding the ...
0
votes
1
answer
48
views
Need help increasing the code coverage for this trigger
I'm a newly hired Salesforce admin and I've been struggling to deploy this trigger since this code is completely new to me. I've been trying to deploy a new version of a trigger with, at most, 10 ...
1
vote
0
answers
39
views
graphQl issue: OR condition not working
I'm having an issue with an Or condition in my graphql statement. It returns all orders where the Order_Status__c field is 'Quote', but not 'Waitlisted'. There are no errors, just the additional ...
0
votes
0
answers
28
views
Why can I create a ContentDocumentLink via Apex but not via DataLoader?
I am trying to copy data from one org to a sandbox via a backup tool and SF Data loader. Most things worked fine, but ContentDocumentLinks are missing.
I tried loading them via Salesforce Data Loader, ...
-3
votes
0
answers
22
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
41
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
34
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
22
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
66
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
22
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
30
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
16
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
42
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
1
answer
48
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
31
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
16
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
11
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
39
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
43
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)
Additional ...
0
votes
1
answer
22
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
33
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
23
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
65
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
35
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
28
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
26
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
40
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
29
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
37
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
46
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
27
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
32
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
99
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 ...