All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

Multi-Lookup fields - set default Object

In Duplicate Record Item Object we have RecordId field in which we can select the entity and then a record from the selected Entity. This one defaults one object, can we somehow change the default ...
0
votes
0answers
9 views

Can't print specific part of JSON using SSJS

I'm trying to retrieve a specific part (attribute Region) of JSON I receive and print it. Apparently, I'm missing something. I would really appreciate your advice. Platform.Load("core","1"); var ip ...
0
votes
2answers
33 views

Disable the Apex Trigger for Perticular user login

Is it possible to disable the Apex trigger when a particular user logged in? Or Is any possibility to restrict the Apex trigger execution depends on user. Ex. My trigger should execute with User 1 and ...
0
votes
0answers
13 views

IN SFMC Landing Page does not resolve embedded html page

All I have generated dynamically a data extension and completed the process of pointing to a sftp and uploaded data to the data extension . We created a classic email by importing from the html ...
1
vote
2answers
31 views

Concatenate only unique value in string

I have a requirement where I need to merge value in a multiselect picklist with value in some other record. So the final record updated should have sum total of all the values among the 2 records, i....
0
votes
0answers
19 views

How to get Contacts related to an Opportunity via Account (Custom button) [closed]

I want to add validation on "New Opportunity" (custom button). Validation is like: If there is any contact related to an account associated with that opportunity, only then create an opportunity.
0
votes
1answer
29 views

How to pass set<id> dynamically to soql

I have a dynamic Soql in which I want to pass a set. I get an error: System.QueryException: expecting a colon, found '{' Anonymous window Set<Id> idSet = new Set<Id> (); idSet.add('...
0
votes
1answer
27 views

update phone number field on Account obj off of phone number from Lead obj

I'm writing a Queueable Apex, that will run and compare search the Lead last name to the Account name if Lead lastname == Account name && Account phone field is null || blank then update the ...
6
votes
1answer
42 views

Basic Question about @track decorator

I have a (probably very) basic question about @track decorator. I modified the helloExpressions LW Component from Sample Gallery as below. Here the values FirstName and lastName are no longer ...
0
votes
0answers
18 views

How to get values dynamically from Apex in LWC and update the report

I have a requirement to create a report, which consists of 3 dependent custom picklists. Picklist values are Sobjects records, chcnging one dropdown should change the values of another dropdown as ...
0
votes
0answers
8 views

How do I put an external data source into an unmanaged package with named credentials?

I am packaging an external data source (namely Salesforce Connect: OData 4.0). I'm specifically having trouble implementing named credentials. For authentication, I'm using Named Principal with ...
4
votes
1answer
30 views

Can an Automated Process still make changes if all users are Frozen?

We have a bizarre situation where a mysterious Automated Process is making mass changes to contact names and addresses at random times. We have done all sorts of troubleshooting, debug logs, ...
0
votes
0answers
6 views

(JScontroller) How to save updated values to child records from parent-view

I have a custom object (RIM__c) with custom object/related records/child records (RIM_Item__c). I need my users to be able to navigate to the parent record and see all of the child records at once. ...
0
votes
0answers
21 views

Retrieve SFMC Data Extension Rows and Update 2nd Data Extension using SSJS

I have created two Data Extensions. I am attempting to use a Script Activity to update Data Extension B based on the contents of Data Extension A. I have attempted to do so with SSJS retrieve request, ...
0
votes
0answers
4 views

How to send a message in Embedded Chat via api

With Salesforce Console Integration Toolkit, I can call the classic api to send a message from customer to agent: sforce.console.chat.sendMessage(chatKey:String, message:String, callback:Function) ...
0
votes
1answer
15 views

Report for users with and without Activities shows Record Count (1) for users without Activities

I created a report that shows Users with Activities from this week. It groups records by Full Name and for Users with Activities, it shows a correct number of records. For Users without Activities, it ...
1
vote
1answer
16 views

How can we auto generate additional testing users with custom password for new DX Scratch Orgs?

I'm looking to setup a custom config for DX Scratch orgs. And would like to generate at least 2 additional test users in the new scratch org being created. Can anyone suggest a way to do that?
0
votes
0answers
14 views

Dependent lightning combobox in lwc is throwing [Refresh failed because resolved configuration is not available.]

I am creating Dependent combo box using refresh apex. The second apex method is being called but in the UI i get an error message as below [Refresh failed because resolved configuration is not ...
0
votes
0answers
11 views

Create Custom Tab Using MetaData Api in Salesforce

I am using the Apex Wrapper for the Salesforce Metadata API from github to create custom object and its tab. I am done with the object but not able to create tab in apex code. There is a class called ...
0
votes
2answers
18 views

Check some permission is enabled among assigned permission sets of User

I need to check if a permission is enabled among assigned permission sets of Logged in User. Lets say I have 3 permission sets named as PSet1, PSet2 and PSet3 assigned to a User. Need to find out if '...
1
vote
0answers
13 views

How can I send an email while using PageReference getContent() method?

I am trying to send an email while using PageReference and the getContent() method which is, only ocassionally, throwing an error (seems like every couple of emails regardless of the frequency). ...
1
vote
0answers
13 views

SFDX Automatic push to server, automatically enabled?

I used to have to add the line in the settings.json salesforcedx-vscode-core.push-or-deploy-on-save.enabled”: true I had to do this every time I created a new project to ensure that when I saved ...
1
vote
1answer
24 views

Font in Marketing Cloud Pages

I'm running into issues with slow speed on pages, and I noticed that there is a huge text string in our pages. I believe it's base64 encoding. I'm not sure if this is is it, but is this normal for ...
0
votes
0answers
15 views

How to generate salesforce token using parameters in Azure Logic App

I want to generate salesforce token using url https://test.salesforce.com/services/oauth2/token and parameters, I tried with postman it is wokring fine. But when I use same parameters in logic app ...
0
votes
0answers
23 views

Using HttpResponse in a seperate class from future

I have written a trigger that calls a class which contains a future method and I need to use the response to update a field. Is there anyway to capture the HttpResponse in a separate class? public ...
-2
votes
0answers
16 views

Workflow Email Alert is deactivated but it still keeps firing?

Not sure why this is since the workflow rule is deactivated. There is no time-dependent actions either
0
votes
1answer
36 views

Pass Custom Type as a Method Parameter

Is it possible to pass a custom type into a static method? I have two custom types and I'd like to pass in a custom type as the method parameter and then identify which type was passed in and run the ...
0
votes
1answer
16 views

Custom Fields for Images in Salesforce

I am aware that Salesforce doesn't have a field type of 'Image' and that to tie an image to a record, you're most likely going to upload it somewhere (could be in Salesforce Files tab, could be ...
0
votes
1answer
7 views

Doing division on a Decimal returns 0 when trying to return a percent [duplicate]

When I run the following code, it will return a 0. It should return 50.00. System.Debug((100/200)*100); I'm certain this is a simple solution. But haven't been able to find out the reason why. I ...
0
votes
0answers
8 views

salesforce url The SSL connection could not be established using c# .net code

To call salesforce api i'm using restclient like below - var client = new RestClient("https://test.salesforce.com/services/oauth2/token"); var request = new RestRequest(Method.POST); ...
0
votes
1answer
21 views

Change name of standard object in managed package

I need to create a script to rename the salesforce standard object, or when i create the package include the new names. I create a Managed Package, this package will be need the new name of the ...
1
vote
1answer
25 views

LWC: Can I use lightning/uiRecordApi for all database interactions?

In Aura, it's standard practice to call an @AuraEnabled Apex method for all database CRUD operations. With LWC, Trailhead promotes the use of lightning/uiRecordApi (User Interface API under the hood) ...
0
votes
1answer
17 views

Having trouble removing the selected option from a picklist and reloads another picklist without the item?

I've made a picklist that keeps on being added when click on the add option link but the javascript I'm using keeps throwing an error of cannot read property "options" of null <apex:variable value=...
0
votes
0answers
9 views

Unable to setup Einstein Bot in my enterprise edition

I have a enterprise edition with required licences for Einstein bots but I can't see the "Einstein bots" in the setup. In the documentation, it says I need the "Service Cloud" license and the "Chat ...
0
votes
0answers
18 views

Creating SubscriberList object

I am trying to create custom unsubscribe for publication lists. I want to dynamically pull in the list id which is being passed through parameters. I know the id is being stored because its showing ...
0
votes
0answers
33 views

Getting null pointer exception on populating map of map data

I am writing trigger to update an order line item of order related to an Account when an invoice line item is inserted corresponding to that order line item. Problem is whenever a loop is iterating ...
0
votes
1answer
24 views

AMPscript to format number field - syntax error somewhere

I've put this AMPscript into an email to format the number field that I'm pulling in. $%%=v(formatnumber(@%%Amount%%,"#,###")=%% %%Amount%% in the record I'm proofing is 26000.0 However, it's ...
0
votes
1answer
11 views

Outbound Email Message empty Attachment Related List

When sending an email, the person receiving it gets both the body text and the attachment being sent out along with it. So it sends out correctly. When I go into the activity history related list and ...
0
votes
1answer
20 views

Create a Custom Object From an Inbound Email

I've got some code and I've gotten some help fixing some errors in it yesterday. it worked but only on the first email and would only create one Parent Opp per email address. I reworked it with some ...
0
votes
0answers
11 views

Einstein analytics - Need to calculate average time an opportunity spends in each stage using dataflow computereleative experssion

Compute relative experssion has offset parameter to get Prev, Next, current and First record so using the Prev offset I can get the previous stage but how to calculate the avg time an opp spends. ...
0
votes
2answers
20 views

What happens with an IF formula with multiple TRUE conditions?

I have a multi nested IF statement like below - what happens if a field meets more than one condition - is there a rule to determine which value gets returned? IF(CONTAINS( Custom__Name__c , "/cs/"), ...
0
votes
0answers
13 views

How to split a string by quotation marks, site operator and non quotation mark? [closed]

I get request from user like this site:www.example.com "hello world" "hi abc" where are you I want to extract and save url from this string then remove it from above String, it should look like ...
0
votes
0answers
12 views

REST API Callout with Named Credentials not refreshing token?

I am making a call from my org to the REST API of another org to pull in some data from the chatter feed API. I set up a connected app on the org of the API I am using. It is using the OAuth scopes (...
1
vote
1answer
19 views

Using LAST_N_Months:3 on CreatedDate in databaseQuery

I am setting a string qryDate = 'Last_N_Months:' + x - so it could be Last__Months:3. I create a string qryString = 'SELECT field1 FROM Case WHERE CreatedDate=: qryDate' and then do: result = ...
0
votes
1answer
25 views

Batch Generated CSV attachement is cut

I designed a Stateful batch to some data and send it as CSV via email. And I don't know why but the attachement received in the email doesn't contains all the expected data, the CSV file il cut in the ...
0
votes
1answer
32 views

SFDX Remove packages dependencies from repository

An sfdx project was gave it to me from a repository, with the request of deploy it in a Development sandbox and start to test it with scratch orgs. The command: force:source:deploy fails with this ...
2
votes
1answer
32 views

mocking method with any instance, string and enum

I am trying to mock a class with a method that has 3 arguments, and these 3 arguments could be any of its own types. I used the fflib_ApexMocks to return 'hello world' whenever the method is called; ...
1
vote
1answer
33 views

Deserialize nested JSON to SObject and get keySet

I have two different requests as below that will hit same end point. I need to identify the request body based on the nested attributes. Now if the key attribute contacts must be same for both ...
0
votes
0answers
20 views

Trailhead 'Data Leak Prevention'

I've got an access to Kingdom Management org (as described in trail) but when I try to act with tab CRUD & FLS Visualforce Demo (just try to choose the user) I get an error - Insufficient ...
3
votes
2answers
195 views

How to run “ $('div').clone().appendTo('.wrapper'); ” in LWC?

I want to achieve this in LWC. I want to call the same HTML content (ex- div, p) multiple times in iteration & append them one below other as shown in above link. I used this $('div').clone()....

15 30 50 per page