All Questions

Filter by
Sorted by
Tagged with
-1
votes
0answers
4 views

How can we bulkify a trigger to assign an identified set of public groups and queues based on user profile?

An extension to an earlier post titled- "trigger to add user to group based on profile". Link: trigger to add user to group based on profile.
0
votes
0answers
5 views

Best practice for CI - Create and Destroy Scratch Orgs?

I am very confused on a concept with SFDX, i have been seeing many SFDC videos and presentations like this SFDX Presentation where salesforce has been telling the best practise for CI/CD is to create ...
0
votes
1answer
7 views

How to extract attachments data in Lightning Experience?

I'm currently using the Document object/table in SOQL to extract attachments in Salesforce classic. As far as I'm aware in Lightning it is necessary to use File instead of Document object to extract ...
0
votes
0answers
8 views

Display Salesforce page/component from Org1 in another salesforce Org2

I have a requirement to show VF/lighting page of salesforce Org1 in another Salesforce Org2.  However possible way just want to show the page/component in another salesforce org. Please let us know if ...
0
votes
0answers
5 views

How to determine if someone clicked on the CTA on cloud page?

I'm trying to track the contacts by logging them into a DE as soon as they click on a CTA on cloud page. I'm using onclick event and passing the value to a variable and then trying to pass the ...
0
votes
0answers
4 views

How to implement typeahead in Lightning Web Components

Can someone tell me how I can implement typeahead in LWC?
0
votes
1answer
11 views

Invalid type when creating a map of <string, list<innerclassobject>>

Invalid type: EcPerformanceRecordList I want to create a Map of userid and list of sObject records, then loop through this map so that I can count how many apps have been submitted per user....
0
votes
0answers
5 views

Delete records in a data extension using its primary key with AMPScript

I have a data extension which has around 90 million records and we are trying to keep it updated only for 6 months of data with the date range being a date column inside the D.E, we were doing with ...
0
votes
0answers
10 views

Query to select all subscribers who have received Email from specific DE

Sorry in advance if the question is repeated, but i have a goal that i want to know how many emails the subscribers from a specific DE received in last and each month. I tried to use the sintax ...
1
vote
1answer
15 views

Updating Custom Metadata Type's Field value via Apex

I'm trying to update a Custom Metadata Type's Field value via Apex. I'm building an Account Assignment Round Robin tool, the Tool calls on the Custom Meta Data Type to get the Value of the position ...
0
votes
2answers
17 views

Benefit of developing managed package in a scratch org with namespace

Why should I develop my managed package in scratch orgs that have a namespace? As opposed to having no namespace. As far I can overlook it only a handful metadata seem to need a namespace prefix. For ...
0
votes
1answer
7 views

is it possible to place repeat block in classic email HTML template?

I am building an email template using HTML and I was wondering if I can place a repeat block in HTML to view a list of rows. I know if I use Visualforce template I can achieve my goal using apex: ...
0
votes
1answer
11 views

Create map between api and record value

I need to get a map of API name and record value Map ServiceContract objServiceContract = [SELECT Id, PriceBook2Id,Name From ServiceContract LIMIT 1]; List<Schema.FieldSetMember> fieldList=...
0
votes
0answers
7 views

How to Activate a File Drop Automation via the API

I can create a file drop triggered automation through both SOAP and REST API's but I cannot figure out how to switch them from "Inactive" to "Active". Any help would be be greatly appreciate, thanks!
0
votes
0answers
8 views

Error when trying to compose a message in a case

One of my agents is trying to send an email from the Case Feed, but when he tries to compose the email he gets an Insuficient Privileges error (see image). Other agents that have the same Profile do ...
0
votes
1answer
12 views

Way to limit total records processed by batch job (not batch size)

Is there any way other than modifying a query in the start method of an apex batch job ex: 'LIMIT 100' to control the amount of records processed by a batch. I know we can use Database....
0
votes
0answers
6 views

Creating edit and multi record save on custom visualforce page and controller

I have a problem and I'm not sure how to go about it. I found the inlineEditSupport code but it doesn't work on BillingAddress field because its comprised of 5 fields I'm guessing. Also, the record ...
0
votes
0answers
7 views

Require 2FA only outside of Trusted IP Ranges, using authenticator app 2FA (e.g. SF Authenticator push notification)

We've decided to use the Salesforce Authenticator app for 2FA for our internal users (reasons below), but want to make the process more convenient by bypassing 2FA when users are logging in from ...
0
votes
1answer
11 views

Managed Package in Scratch Org

Can anyone confirm if we can create managed packages in Scratch org. Of so, can please share the relevant documentation.
0
votes
0answers
10 views

Marketing Cloud Tracking Exports to Data Extensions

I have a multi-business unit marketing cloud setup and I am trying to extract individual email send data to an external website. I tried to look up querying this data from within automation builder ...
0
votes
0answers
4 views

Wordpress Gravity Forms to SFMC FTP help

I am trying to connect wordpress Gravity Forms to my SFMC FTP and am failing. I am using a plugin called Entry Automation on wordpress and I cannot connect to the FTP. I can connect through FileZilla ...
0
votes
0answers
14 views

Is there a way to input mask a Salesforce lightning-input component?

I am trying to write a custom Lightning Web Component that displays a single lightning-input text component and dynamically masks the input as the user enters it. By "masks" I mean it reformats the ...
0
votes
0answers
3 views

Social Sign On for Salesforce Mobile App using Connected App

We have a Connected app that generates a token to authenticate. My requirement is to use the connected app for Social Sign on on Salesforce mobile app. Any ideas on implementation of this? Is Social ...
0
votes
0answers
12 views

Add - Remove Modal slds dynamically LWC

I have this below LWC code for modal pop up. This same LWC is used in two aura component. Aura component 1 -> is used to override new (Standard) button in one of object related list object. Aura ...
0
votes
0answers
15 views

Batch fails to deploy

I have a batch that I uploaded into Production successfully on July 20th and then a change to that batch on July 27th, both with no issues. I needed to make another change to that batch today, so I ...
-1
votes
0answers
19 views

I need to increase code coverage, I have 33% and I am getting no code coverage for the Contact SOQL

public class UpdateContactfieldsonthebill{ public static String getAccount(loan__Loan_account_Due_Details__c a) { Account a1 = [SELECT Id, Name, CurrencyIsoCode FROM Account WHERE Name =: ...
-1
votes
0answers
22 views

Getting System.LimitException: Too many SOQL queries: 101

If(invcIds.size()>0){ List<AggregateResult> ar = [Select invoiceit_s__Invoice__c invId, MAX(invoiceit_s__Payment_Date__c) pymntdt From invoiceit_s__Payment_Plan_Installment__c Where ...
0
votes
1answer
10 views

SFDX push error: Property 'publishBehavior' not valid in version 45.0

I'm trying to push source to a scratch that I've been using for 3 weeks, but suddenly I'm getting an error on all my platform events: Property 'publishBehavior' not valid in version 45.0 It's ...
0
votes
1answer
9 views

Aggregate Queries Count is Wrong

As per the Salesforce official document, For COUNT() or COUNT(fieldname) queries, limits are counted as one query row, unless the query contains a GROUP BY clause, in which case one query row per ...
0
votes
0answers
6 views

Can user group be used to create junction object?

I wanted to set up many-many relationship between projects and teams, and i would like to utilize the user group so that the user can only see the projects that are assigned to his/her group. But it ...
0
votes
0answers
5 views

Does Outlook work in Lightning or require the new plugin

Does "Salesforce for outlook" integration work upon enabling lightning or will "lightning for outlook" need to be installed to replace it?
0
votes
1answer
11 views

List<List<SObject>> in apex:attribute type

My visualforce component has the following attribute: <apex:attribute type="SObject[][]" name="var" description="Variable to store results in." assignTo="{!searchResults}" required="true"...
-1
votes
0answers
15 views

Need to return a map with field set label and field value

I have a list of field set label and record of the same object. I need to create a map with {label , record value} for exam : I got a list from the field set of field label List={'Name', 'Place','...
1
vote
1answer
12 views

AMPscript Non Sendable DE as Source in Email and Error system.data.datarow

I am trying to use a non-sendable data extension as a source for building emails more easily. My exact steps: I uploaded a .csv file with 5 columns (ProductName, Category, SKU, Price, and OrderFormat)...
0
votes
0answers
9 views

HTTP Post request using server side javascript in cloudpages

I am trying to call the url with two parameters and doing this is server side javascript.The following code is returning 500 Internal Server Error. Can somebody help me debug this. Thanks in advance. ...
0
votes
1answer
18 views

Get the index of newly inserted record with array unshift

If I use array.push everything works fine, but when I push the currently inserted element to the top of the list, I cannot access the index of the elements for styling. cmp: <aura:attribute name=...
2
votes
1answer
36 views

Does quantity of data extensions impact performance?

In Marketing Cloud, if I begin deleting data extensions, could that do anything to improve the overall loading speed of the UI in the various contexts where Contact Builder data is being referenced?
0
votes
2answers
20 views

Process builder Done DML does not fire another process builder?

i have a process builder which change owner of case record when i change status.and i have another process builder whose entry criteria is whenever owner is changed send chatter notification so this ...
1
vote
1answer
23 views

Checkmarx XSS Vulnerability with Lightning.CreateComponent

I have a visualforce page which creates a lightning component with the with the attributes provided something like this ` <apex:page cache="false" showHeader="false" sidebar="false" ...
1
vote
1answer
12 views

Lightning component not rendering value

I have a component that will live on a case page where I want to show case comments and make an easy way for them to toggle them between public and private in lightning. However it retrieves the info ...
0
votes
0answers
15 views

Login flow not working in Lightning runtime in Mobile app

I have a simple login flow to show a message before users enter, with a checkbox to "not show this message again" which updates a User field so next login the flow doesn't run past this decision. ...
2
votes
1answer
25 views

Do I need to define sharing for test classes?

The question is simple: should test classes be defined with sharing with sharing | without sharing | inherited sharing to pass the security review? Technically Salesforce enforces this by saying it ...
0
votes
0answers
12 views

How do I access the chatter profile photo on a user record using LWC in a community

In aura I was grabbing the users chatter profile photos from 'Contact__r.pse__Salesforce_User__r.FullPhotoUrl'. However, when trying to access the url to the photo for a given user in the lightning ...
0
votes
2answers
22 views

How can i access the value of particular field in Schema

Here in fld i have all fields of Lead Object and now i want to create a new Account and Name of the Account will be Lead's Name public void show() { Schema.DescribeSObjectResult a_desc = ...
0
votes
0answers
9 views

Not able to reLoad parent component

I have oveveride the stadard "New" button with a component (Parent) and in that parent component there is a child component. In the child component I have a button and on that button click I am ...
0
votes
1answer
22 views

How to set Assigned To Id in task to Account.OwnerId in task after insert trigger

I have the following code trigger AssignTaskOwner on Task (after insert) { Task myTask=trigger.new[0]; Task updacc=[select id from task where id = :myTask.id]; updacc.OwnerId= 'somestring'; update ...
0
votes
0answers
6 views

Flow Dependent Picklist Values

I'm sure this is a simple fix, but I cannot figure out how to store the selection from a Dependent Picklist component. I am using just a basic Opportunity with the StageName and a child picklist, ...
1
vote
1answer
18 views

Will Bulk API be affected by System.isBatch()?

I have a trigger that needs to be run during a Bulk API insert/update of records but that needs to not run during an Batch Apex Job like: global class myBatchClass implements Database.Batchable<...
1
vote
1answer
24 views

Accounts are not updating when I choose an account type from the dropdown box

I think I need a pageReference for the updateRecordList. Right now it runs but it won't display the accounts with the selected account type. Can anyone explain to me whats wrong? and how pageReference ...
0
votes
1answer
21 views

Can Not Update SFDX

I am running into an error when I am trying to update my SFDX version in my cli and I am unsure what it means. Olivias-MacBook-Pro:test op$ sfdx update › Warning: Use "npm update --global sfdx-...

15 30 50 per page