All Questions

-1
votes
1answer
8 views

Apex Trigger Avoid nested loop while inserting or updating record child-parent relationship

public class UpdateandInsertAccountRecordHandler { public static void onAfterInsert(List<Account> accList) { Set<Id> aNames = New Set<ID>(); FOR(Account A : ...
0
votes
0answers
15 views

How to move Chatter Feed of type 'TrackedChange' from contact to person account

We have recently adopted person account and are trying to move chatter feed from contacts to person accounts. According to this article: https://help.salesforce.com/articleView?id=000213215&type=...
1
vote
0answers
16 views

How to upload Files as Guest Community User

According to Spring 19, it should now be possible to upload files as a Guest Community user. But if you try either of, <lightning:fileUpload> . <lightning:input aura:id="fileId" onchange="{!...
0
votes
0answers
12 views

multiple rest url callbacks in lighting web components

Is it possible to call multiple query values from single rest call. I have a use-case with user defined js-meta xml file, where values from users can have X,Y or more values each separated by comma ...
0
votes
1answer
8 views

Error When Deploying Quick Action With Predefined Lookup Field

I have a Quick Action which works fine and has predefined field to a lookup record, AddressType, though it happens in all cases. When deploying to scratch org I get error Formula result is data ...
0
votes
0answers
8 views

Lightning Web Component Slots in App Builder

Need some help, not even sure if this is possible... In Lightning App Builder, the standard tabs component has "Slots" where tab content can be placed. My question, is this available for LWC through ...
2
votes
1answer
20 views

Rewriting trigger for an old API version

I was in the process of updating the API version of all the old classes and triggers in our org (noticed alot of them were in version 15-18 instead of 41+). Everything wen successfully, except for one ...
0
votes
0answers
9 views

Automatically change Contact Record Type on Site.createPortalUser() call?

I'm wondering if there is a succinct was to specify the Contact Record Type when creating it through Site.createPortalUser()? Thanks!
0
votes
0answers
3 views

Getting the width of Email Content using the Block SDK

I have made a custom content block inside Content Builder using the Block SDK and I need to figure out the width of the space inside of the email (when editing) so I can set the width of the images ...
0
votes
0answers
10 views

Report in LEx truncates values

We have a report in Classic that displays a Description field. When the field value is fairly long (many hundreds of characters), the report displays all data (desired behavior). When we view the ...
0
votes
0answers
24 views

How to create a multiple file uploader on LC for Public site or Standalone App?

I'm wondering if there is any way to build a multiple file uploader that creates ContentVersion and ContentDocumentLink records. Is there any complete guide out there?!, because as you can see on the ...
0
votes
1answer
19 views

Duplicate Management in Lightning - Matching Rules vs Duplicate Rules

In Salesforce Classic experience, we can manually search for duplicate records and pick and choose which ones we want to merge. In Lightning, however, this is not possible, and only records identified ...
2
votes
0answers
19 views

Using AMPscript/SSJS perform a global unsubscribe from a CloudPage on a child business unit?

If you run the code below on a CloudPage that belongs to a Child Business Unit, it will perform a Master Unsubscribe the user from Child Business Unit that the CloudPage belongs to. <script runat="...
0
votes
1answer
23 views

Error when trying to send post request via python /composite/sobjects

Pretty much title says all, I was able to get the snippet within test = {} to work within salesforce workbench. Would love some guidance on what I am doing wrong as individual "non-bulk" requests work....
0
votes
1answer
31 views

Do custom settings org defaults behave inconsistently in validation rules and flows?

We have a custom setting with multiple fields which we use in validation rules and flows. One of the fields in the setting is "Validation Enabled" which we use to disable validation rules to allow ...
0
votes
0answers
23 views

Need to create summer 2019 scratch org [duplicate]

Can someone tell me please how can I create a scratch org that is on the preview list for summer 2019 release? I don't want to wait till June 14. Here is the page with release dates for summer 2019:
1
vote
0answers
13 views

RecordEditForm throwing error on sites with LightningOut when given a record Id

I created a lightning component which has a simple recordEditForm to allow users to edit/create contacts. Using lightningOut, I embedded it in a VF page, and then exposed the page to a Force.com site. ...
1
vote
1answer
13 views

“Mobile User” Extract or report

I am looking to pull a report/extract that says which users have the following checkbox marked as true. I have tried getting this data in multiple ways, but can't seem to find the object this field is ...
0
votes
0answers
12 views

unable to save draft data on lightning:datatable

I've an object with value attribute, this value is changed by the user, populating the draftValues from lightning:datatable. I passed draftValues to a map: var draftMap = new Map(); draftMap.set(0, {...
0
votes
0answers
14 views

Authenticating REST Requests [on hold]

https://s3.amazonaws.com/doc/s3-developer-guide/RESTAuthentication.html I am trying to understand all the steps mentioned in the above document. At REST Authentication: Example 2 there is a line ...
0
votes
3answers
30 views

Unable to update a lookup field despite appearing in the debug log

I have a lookup field that is not updating for some odd reason. I can see the field being set in the debug log with the proper value, but the actual field is not being updated (11:46:48.0 (105304277)...
0
votes
0answers
9 views

Invocable method giving error in FSL flow mobile

I created a flow using Flow designer and it is a FSL mobile flow. Here I basically uploading a file and then using the same for Einstein Prediction and here is how I'm doing. Upload file using ...
0
votes
1answer
18 views

Calling salesforce API using java application returns 301

I tested the following code and is working perfectly on sandbox and returning the following: HTTP/1.1 200 OK Successful login instance URL: https://XXXX.salesforce.com access token/session ID: ...
2
votes
0answers
27 views

Issue with Insert Trigger after Workflow Field Update

I've an interesting issue here with the combination of Trigger and a Workflow Fied Update on the Opportunity object. I do know/understand the Apex order of execution and also the fact that Salesforce ...
0
votes
2answers
32 views

Dynamic row values inherits the values from row before in lightning component

I have a lightning component where in I have a few text fields and 2 picklist fields, controlling and dependent. The problem is whenever I try to add a new row dynamically, the new row will take the ...
0
votes
0answers
13 views

Storage Usage Discrepancy

I am seeing Events listed in Current Data Storage Usage, however using dev console, I see nothing in the events table. Is there somewhere I should be looking to find these events? Any info will be ...
0
votes
0answers
6 views

Is it possible to add Knowledge Base articles as Custom Pre-Chat Component based on the Chat Request Page?

I am planning to show knowledge base article once somebody Click and open the Snap-In Chat Window. Before the I want to show Knowledge base articles based on the Chat Requested Page. If customer can ...
-1
votes
0answers
27 views

Trigger copy from account to custom object

I created a custom object called NavaSoft__c and there are 3 fields (Name, CurrencyIsoCode and Telefono) I have this trigger: trigger ClienteInsert on Account (before insert) { List<...
0
votes
1answer
17 views

Unable to retrieve newly added metadata using Visual Studio Code

I have started using Visual Studio Code and I've run into an issue when trying to retrieve newly added metadata. I've created my project and connected to my development sandbox org and retrieved all ...
0
votes
2answers
26 views

Unable to access records inserted from one test method to another method

I am working on a requirement to tag values from a case(one record type to another) to another case. But right now we don't have lookup fields in case level. My apex class is working perfectly. But ...
-1
votes
1answer
26 views

How to compare datetime field in the format 2019-01-02 04:18:00

I have a Datetime field in Salesforce called Checkin_Date__c. I have got a list of records, then trying to compare the checkin datetime field in all the records, and want to store the recent one. But ...
0
votes
1answer
21 views

Marketing Cloud SQL If Statement

I want to assign a Yes or No to a column based on if another variable is Blank or not. Would it be something like this? if OpenedDate is Empty then set Opened = No ...
1
vote
0answers
9 views

Unable to see Attendee list on event object in lightning experience in Spring'19

As per the below link of salesforce release notes, we can now see the attendee list on the event object in the lightning experience without enabling setting up the lightning sync. Salesforce Release ...
0
votes
1answer
20 views

How to know if an email is delivered or not in marketing cloud?

I'm using marketing cloud to send emails. I'm able to fetch user level email open & click report from marketing cloud using data views (_open & _clicks). Is there any data extension or ...
1
vote
1answer
25 views

Checking user's role by API

I have created a Marketing Cloud page with a form, which is supposed to be filled out by users with appropriate permissions. What API call should I use to enable such a function on the website that ...
4
votes
1answer
61 views

Get Lightning Web Component (LWC) definition on a describe

I need to describe a Salesforce Org that contains LWC, but the JSON obtained with the command: sfdx force: mdapi: describemetadata -a 44.0 -u username does not define me the LWC that should be ...
0
votes
0answers
20 views

Creating a list of lighting cards inside a lightning datatable [duplicate]

I'm trying to create a lightning datatable filled with lightning cards as rows using lightning web components. Is it possible to add a lightning card as a row? I'm doing this so that I can use the ...
0
votes
1answer
20 views

Can't choose Contact as Entry Source in Journey Builder

I am having an issue with Journey Builder Entry Source. I want to use my synchronized Sales Cloud data as the entry source. When I choose Lead as my Entry Source - no problem, the lead is there and I ...
0
votes
0answers
11 views

Salesforce Reports & Dashboard Sharing

We have to give permission to user to Save report and Dashboards in a public Folder but users should not be allowed to Edit, Move or delete Reports/Dashboards which falls under that public folder. ...
0
votes
0answers
7 views

Pardot Interaction Report

I have a request to get the data that is currently in Pardot under reporting and the email interaction tab and add it to Campaigns in Salesforce. Pardot Email Reporting I have gone through all the ...
0
votes
0answers
16 views

Report that shows the last date sent per contact

I would like to remove dormant subscribers from Salesforce Marketing Cloud. To that end, is there a way to build a report that can show me "last send date" and "total sends" by subscribers? Thanks!
0
votes
1answer
21 views

Process Builder / workflow rules not firing

I'm having some issues with a Process builder. I want it to fire when the Last Modified Date is some time ago (a couple of minutes in my example below, just for testing) and that the Case Owner is ...
0
votes
1answer
28 views

How to enable '“Enable Milestone Feed Items” in scratch org through metadata file or configuration

How to enable Enable Milestone Feed Items,Show the time remaining in actual hours, not business hours, and Enable stopped time and actual elapsed time in scratch org through metadata file or ...
-1
votes
0answers
17 views

How can we download file through lighting component [duplicate]

I have a PDF file stored in the files section of Lightning. I would like to create a Button on the lighting component so that when any user clicks the button it downloads that file. I have to show ...
0
votes
0answers
15 views

Lightning call retrieving error when launched by a non-system administrator user

I have a lightning component that is working fine with System Administrator user but not with everyone else. This is my code: helper.js: checkPreActionStatus : function(component){ var result; ...
0
votes
0answers
12 views

unable to use forceChatter:feed for feeditem in lightning component [on hold]

I am using this code in lightning component: <forceChatter:feed subjectId="0D56100001VjLhxCAF" /> But nothing shows up for feed
0
votes
0answers
14 views

Create Custom Field on Account Level with last won Opportunity ID [on hold]

I need help to solve this challenge. I wanna create a Custom Field on Account Level which shows the last won Opportunity ID. I need this Field to link a submitted Case with this Opportunity ...
0
votes
0answers
23 views

Why is my read only field editable?

I need to make one field(Date) read-only in an object(Service Appointment). I've set the Page layout settings to "Read-only" I've unchecked the system permissions of profile "Edit Read-only field" ...
0
votes
1answer
39 views

Aura:if condition needs to be added in lightning select option

i am new to lightning and i need to add a aura:if condition to one of lightning select option. My lightning select option contains a none value along with other options that render data in a ...
0
votes
1answer
30 views

List.Add() not working

I've got the following code snippet in a trigger handler class x1 = trigger.new; List<Id> listx = new List(Id); For(integer i = 0; i < x1.size(); i++ ) { System.debug('Loop ...

15 30 50 per page