All Questions
114,075
questions
2
votes
1answer
11 views
Metadata that cannot be removed from a beta managed package
In the Consideration for Installed Flows documentation it states:
You can’t delete flows from Managed - Beta package installations in development org
This came as a big surprise to me, as I thought ...
0
votes
0answers
6 views
Process running sumo from java never ends [closed]
The program is stuck at p2.waitFor() (I tested with printing strings before and after)
public void score() {
this.toXML();
try {
Process p = Runtime.getRuntime().exec("python ...
0
votes
1answer
19 views
How to determine which objects / object permissions are applicapble / not applicable for a given profile?
Some Salesforce objects have own section within Object Permissions list in specific profiles, other not. As I know ObjectPermissions has ParentId field which points to PermissionSet associated with ...
1
vote
1answer
18 views
LWC variable not defined
I am creating a LWC data table and I would like that when the user click on "Edit Table"
The fields in the table will get the inline edit true
import { LightningElement, wire, api } from '...
0
votes
0answers
15 views
A single content builder WYSIWYG editor for every language
Is there an easy way to have a block element with a single WYSIWYG editor for multiple languages?
I want to have an element similar to the image carousel but with text.
Default text field (Shown in ...
-1
votes
0answers
15 views
Trigger -where Account has a field : Total edit ,This field updates the number of times my related contacts is edited [closed]
Account has a field : Total edit ,This field updates the number of times my related contacts is edited.
Ex: A1 - C1 , C2, C3
A2 - C4 , C5
Transaction1 : C1, C3 , C5 gets edited
A1 - Total edit field = ...
0
votes
0answers
18 views
Uploading file with 45MB size using data loader keep failing
I'm trying to upload files to Salesforce using data loader and the file size is around 45MB every time I'm trying to upload the file I got error with maximum retries reached, any idea how to deploy ...
0
votes
0answers
9 views
How to get ConnectApi ManagedContent by folder name in apex?
I can get cms ConnectApi.ManagedContentVersion by topic, content id, content key, content type. But is it possible to get contents by folder name?
-1
votes
0answers
13 views
Custom field on multiselect types through an apex [closed]
Industry information contains Business vertical,Division of vertical, Area of divisions of type multiselect and their values are represented below these industry object come under contact object
how ...
0
votes
0answers
6 views
Can I remove the approve, reject, recall buttons from approval history related it?
Is it possible to remove the salesforce standard buttons from approval history related list ?
I have custom functionality defined for the same.
0
votes
1answer
17 views
Parsing map to get list of objects based on Key
Is there an easy way to extract the list of objects from a map containing list of objects? For ex, below is an example map that I need to deal with.
map<Id, List<Contact>> ...
1
vote
0answers
7 views
In SFMC Mobile Push, How do i send a notification to a specific device from Journey Builder
Suppose a contact key has 3 device mapped to it.
Initially I am sending notification to all the 3 devices of the contact key.
But based on the click/open activity of the user on distinct device I want ...
1
vote
1answer
23 views
metadata retrieve operation failed: INVALID_CROSS_REFERENCE_KEY
On executing:
sfdx force:mdapi:retrieve -r ./mdapipkg -p ./ProjectComponents.xml
I got the error message:
metadata retrieve operation failed: INVALID_CROSS_REFERENCE_KEY: No package named
The file ...
0
votes
1answer
41 views
Any risk in recompiling all Apex classes in org?
Running into an issue with a deployment, getting a ton of errors of the following flavor:
line -1, column -1: Dependent class is invalid and needs recompilation: Class MeansRegisterCustomerTest : ...
0
votes
0answers
24 views
Bulkify Apex Methods Using Collections In Methods warning in Checkmarx
We are facing Bulkify Apex Methods Using Collections In Methods error in few classes:
We have a below code:
public static void myMethod1(Id oppId,
obj__c ob, List < customObject__c > cobj) {
......
0
votes
0answers
11 views
SFDX auth:web:login to SAML org redirects to SF Login form
Our sandbox is set for SSO SAML. I can directly access the org via SSO and not have to enter a username or password.
When trying to login using sfdx force:auth:web:login I am presented with the SF ...
0
votes
1answer
35 views
Upsert parent and child in single DML using there own ExternalIDs
I have a requirement to upsert parent records by External ID ExtParent__c field. And upsert child records by its External ID ExtChild__c field.
For this, I used:
upsert parentRecord ExtParent__c; //...
0
votes
1answer
20 views
Include two different package Directories during unlocked package creation
I am having different set of LWC components some under force-app and some under common folder. My sxdf-project.json is
{
"packageDirectories": [{
"path": "...
0
votes
0answers
27 views
Passing two different attributes into single Queuable class
I am passing the input from trigger to Queuable class.
My trigger code
In after insert:
system.enqueueJob(contactTriggerHandler.test(trigger.new,null))
In after update:
system.enqueuejob(...
0
votes
1answer
22 views
Text doesn't wrap in <div> and <lightning-card>
I have a little problem, text inside tags doesn't wrap (I don't use <p> and write text in <div>).
HTML is very simple, but I can't solve the problem:
<template>
<div class=&...
0
votes
1answer
16 views
Iframe Id null in iframe onload method
I am loading iframe dynamically on button click of the window, the iframe uses pdfJs library.
However, in onload method of the iframe, I am geting iframe object as null, and getting error.
This is my ...
0
votes
1answer
15 views
Error when making an unlocked package containing reports
I have been trying to make a package with multiple metadata in it including some reports. After I run the creation command I get an error while verifiying metadata as:
Report_Accounts/...
0
votes
0answers
22 views
Exported Community Template is missing all Compact Header components
I'm trying to export a Lightning Community Template. My export is successful, and I'm able to generate a new community using my exported Template. But the new community generated from the template is ...
0
votes
0answers
13 views
We are triggering push notification from MC, we added URL to notification but its not taking to right path for android devices
We are triggering Mobile push notification from Marketing cloud, we are able to receive the simple text message from MC for android devices, but when we add the URL to mobile push notification, its ...
0
votes
2answers
42 views
Date formatting not working properly [duplicate]
I have my locale set at (GMT-05:00) Central Daylight Time (America/Chicago). And I am using the below Apex.
DateTime d2 = System.Today() ;
system.debug('date is '+d2); // date is 2021-04-10 00:00:00
...
0
votes
1answer
50 views
Queuable apex basics
I have a method in apex class
public static void test(List<contact> newOppProdList,Map<Id,contact> oldOppProdList){
List<test__c> testprod= [Select Id,name from test__c];...
1
vote
1answer
25 views
change the button variant on click, in aura:iteration
<aura:iteration items="{!v.itemList}" var="con" indexVar="index">
<div class="slds-p-top_small">
<aura:if isTrue="{!...
0
votes
0answers
11 views
How to change the appearance of quote templates with custom fields to include quote line item numbers?
In my opportunity I created quotes and added quote line items. They appear very nice in here (1, 2, 3, 4, 5).
However, when I click on create PDF
It shows them without the line numbers. How can I ...
0
votes
0answers
17 views
How to JEST test a lightning-input of type “file”
I have an LWC that updloads a file:
<lightning-input type="file" label={label.AttachInvoice} accept="image/png, image/jpg, image/gif, application/pdf" onchange={...
0
votes
1answer
17 views
Copy Salesforce standard auto increment field to custom field
I'm trying to copy the 'Lead ID' field that's auto generated by Salesforce into a custom field. I'm unable to view this particular field under Leads but its coming up in reports. Is there a way to ...
0
votes
0answers
11 views
Can we update an opportunity record in a way that same updated picklist value should reflect in the Activity as well?
My business team had in their requirements is the following:
If a user changes the Student Journey Condition value on the opportunity record, that change should default to all subsequent new activity ...
0
votes
1answer
15 views
Cannot read property 'setParams' of undefined - screen flow embedded in Aura component
I have embedded a screen flow in an Aura component and I want to control the flow's Finish behaviour to redirect to a URL after clicking on Finish.
Aura component:
<aura:component implements="...
0
votes
1answer
22 views
Is TriggererSendDefinitionObjectID unique for Opens?
I´m having trouble to query Opened emails from a Journey accurately.
I want to keep a Data Extension with all the openings from the journey <'Homem_Casado_30_55'>, version number=2.
So this is ...
0
votes
1answer
5 views
Cannot update the value of a custom field on Case Object using jsforce
My Scenario
I have a specific RecordType of a Case Called Customer Feedback. I can create a case with this specific record type like this:
// Creates a new Case successfully, no custom fields.
conn....
2
votes
1answer
96 views
Object of type datetime is not JSON serializable
I'm new using Simple_Salesforce for Python and I'm trying to update a record of "Account" and one of the values that I need to update is a Date/Time value, but I'm receiving the error: "...
1
vote
1answer
34 views
JSON Modification on Event change
I have JSON were we are using in html file
const LST_HRS_OPEARATION_INPUTS = [
{ id: 1 , openTime: '', closeTime: '',boolIsRequiredInput: true ,boolIsDisabled: false, boolIsRequiredLabel : '...
-1
votes
0answers
20 views
SSJS script to update a date field based on another date field based on days in the next month in marketing cloud
I have a requirement to update a date field (bill_date) based on 2 fields (another date field(order_activated_date) and bill_cycle field).
If bill_cycle is 1 and my order_activated_date is 8/4/2021(...
0
votes
1answer
33 views
Help with storing JSON data
I'm new to salesforce and I have to parse this JSON and store the values in variables. I have used json2apex which generated 2 classes for me. When I use system.debug I can see it's reading the JSON ...
0
votes
1answer
9 views
Query Activities associated with Contacts
I am building a lightning component on Account that takes the Account ID and returns the contacts and the most recent task associated with it.
@AuraEnabled
public static list<Contact> ...
0
votes
0answers
18 views
how to add table programmatically in lightning-input-rich-text?
As per the documentation "Although a toolbar button for creating tables is not available, creating tables programmatically or copying from a browser window and pasting these elements preserves ...
0
votes
1answer
15 views
Disable VFP Command Button on Click
I currently have an issue where users are button mashing a custom VFP Lead convert page and converting a lead into multiple Accounts. Based on the direction of this POST I was able to partially ...
0
votes
1answer
26 views
How to change field permissions in a permission set or profile programmatically (APEX)
I've been testing out a component where one can programmatically create a field in the user object. It's being used to allow a user to check a few boxes that'll filter components in pages (using the ...
0
votes
1answer
13 views
Can't Access Quote Line Items through Quote Object in Process Builder
When I go to create a new process in Process Builder on the Quote Object, why are Quote Line Items not an option under field selection? See image below - The 'Line Items' that shows is just a count ...
0
votes
0answers
13 views
Send a password protected PDF in marketing cloud [closed]
this is the case scenario. The client wants to attach password protected PDFs to email sends in Marketing Cloud.
I couldn't find any resources to do it. Does anybody has a solution to make this happen?...
0
votes
0answers
7 views
How to call Community Url from VF page in Salesforce
I want to call community page URL from my custom VF page. My VF page having one Terms and condition custom label where i have used Href tag for redirecting form VF Page to Community pages.
I have also ...
0
votes
0answers
11 views
Omni Channel Lead Assignment Not Working For Some Users
I have setup Omni Channel for Lead Assignment in my sandbox. I have added multiple users to the queue that is associated with Omni Channel. All the users belong to the same Profile.
However, when a ...
0
votes
0answers
12 views
Retrieve standard NAME field label change through Metadata API
I have updated the standard NAME field's label on custom object through rename tabs and labels in Setup. But I am not able to retrieve the Name field label change.
Here is my package xml:
<?xml ...
0
votes
0answers
9 views
SLDS-MODAL not sticking for Salesforce Mobile App for Mobile Phone (i.e. iPhone/Andriod)
We are using the following SLDS Modal and for some reason on the Salesforce Mobile App for iPhones/Android it is not sticking/staying on top. When I scroll the page, the modal scrolls with the page.
&...
1
vote
1answer
41 views
CPU Time consuming
I'm beginner into dev and i need your help to understand what does it means "QueuableHandler" and "DB" on screen below. I need to find what consumes a lot CPU time, and i see it is ...
0
votes
1answer
17 views
Getting Values from lightning:select and lightning:input fields of dynamic form
Everyone,
Looking for help on how to get the selected and input values in a Controller from a dynamic form. I can get the Name and Id of the fields, just not the values input or selected. I've tried ...