All Questions

0
votes
0answers
4 views

how to write test class for REST API Response class

I have a post method in REST API. Once the record is created, I am sending a response to user. In order to send response, I have created a class that checks if the incoming payload was in JSON format, ...
0
votes
0answers
8 views

Create a button that works everywhere in lightning

Hey so basically i want to create a button that i can use anywhere to open a link to URL in UAT. The create custom buttons in or quick actions in sandbox are kind of restricted like i can use the ...
0
votes
0answers
9 views

.set and .setCustomValidity not working for two checkboxes

I am trying to place a custom validation if atleast one of my checkboxes is selected or not. and show the relevant error message. I am able to achieve this when there is only one checkbox , HOWEVER ...
0
votes
1answer
14 views

is it possible to get the parents old value in trigger update on junction object

i have a issue in retrieving the old value of parents record onthe junction object update scenario, do anyone have come across this scenario, please throw lights. Junction__c oldlrj = [SELECT Id, ...
0
votes
0answers
13 views

Advice on creating better unit test [migrated]

I have this controller, in which  I am trying to write good test classes. I have some test cases, corrections /advice are appreciated to make them better. public with sharing class ...
0
votes
1answer
11 views

How to perform a load test on a triggered send

I'm looking to perform a load test on a triggered send by pushing ~160k records through the trigger. For the test, we are planning on taking a block of live records and replacing the email address ...
4
votes
0answers
19 views

Is this possible to rename a field using Tooling API or Ant Migration Tool or SFDX CLI?

I have tried to run renameMetadata call from Ant Migration Tool <target name="1. Rename field on Sandbox"> <sf:renameMetadata username="${sf.Sandbox.username}" password="${...
2
votes
1answer
21 views

Pass value from apex component to controller

I have a visualforce force component: <apex:component controller="NewITAssetController"> <apex:outputPanel> <label>Date field</label> ...
0
votes
1answer
17 views

Is it possible to have a DE that houses all click-related information to be used in a journey?

I want to be able to trigger activities and journeys based on Click behaviours, but from what I understand, to do this I would need to create a SQL query, a Data Extension, automation, and a DE ...
-1
votes
2answers
17 views

Problem with the switch conditional statement in the email template?

{CASE(Account.AccountSource, "ABC-Website", "Diese haben wir über unsere Website erlangt","Sportsponsoring" "Diese haben wir über ein soziales Netzwerk erlangt" "")} I don't understand what's wrong ...
0
votes
2answers
18 views

How to find out previous URL when navigating from force.com site to visualforce page?

I have an inactive site like http://abc-company.cs95.force.com/Event I have set Inactive site home page to visualforce page RedirectEvents. When user navigates to a site page which is like http://abc-...
2
votes
0answers
16 views

Can a lightning web component know the difference between console and standard view?

I created a LWC which displays a link to an object... and I want that link to "open in a new window" (target "_blank") if the user is viewing it via standard navigation view (non-console). And, if ...
0
votes
1answer
13 views

Creating Data Extension with other type than standard

On Marketing Cloud Data Extensions in Email -> Subscribers -> Data Extensions have type. Is there possibility to create Data Extension by API with other type than Standard (Filtered, Random)? In Data ...
0
votes
1answer
23 views

Generate Unique URL in salesforce

I have a requirement where internal users have to generate/frame an unique URL via email which will be used by external user (Not a salesforce user). The URL should open a form and creates a record ...
0
votes
1answer
17 views

How can I manage orchestration between two journey builders?

Let's assume a contact enters JB x and a mail gets sent to him. The same contact enters in JB y, but I do not want him to receive another email from JB y on the same day that he received an email from ...
0
votes
1answer
11 views

Pros and Cons SFO vs. Managing Emails in SFDC

My service agents both manage inbound calls and emails and thus we've decided to manage customer requests directly from Service Cloud (emails and calls with CTI integration). We've explored the route ...
-1
votes
0answers
12 views

How to enable chatter on vf page for a custom object?

<apex:page > <chatter:feed entityId="{!$User.Id}"/> </apex:page> How do I replace entitiyId with another custom object so that Chatter feeds of that particular custom object gets ...
0
votes
0answers
7 views

Is it possible to create a report with Stages on columns with dates they moved into that stage below?

I'd like to create an opportunity report, which shows the stages across the top (columns) and beneath those, the dates for which the oppy entered that stage. Here's a rough mockup: Oppy Name ...
0
votes
0answers
11 views

Redirect to non-default tab on recordpage from Lightning Component

I'm using a lightning component to update a record. For the lightning whole application to work well, it has to reload completely. After updating the record, I use lightning-navigation to create the ...
0
votes
0answers
6 views

Open Salesforce contact page - Softphone & CTI

I currently have a telephonic system (Alcatel Open Touch) with a PBX server and a softphone app on different computers that allows my team to communicate with clients (Alcatel Connection). I would ...
0
votes
1answer
16 views

How to access client side javascript variable in SSJS?

I am facing difficulties in showing a message. Below is the problem statement : I have six textboxes on a cloud page which stores six digit coupon code(one digit each). I am trying to show a error ...
0
votes
0answers
13 views

How to Print attachment on a Salesforce site?

I have a Salesforce.com site where there is a button to open a div containing a iframe for a attachment. I'm able to show the attachment but not able to print the attachment using a custon button. We ...
0
votes
1answer
11 views

Create a Community User & Contact, then assign to an existing Account

I am a little bit new to salesforce & APEX AND need help with the following, I want to create bulk community users & then assign them to existing accounts through APEX code/classes (for ...
0
votes
2answers
23 views

Is it possible to compare multiple values in AMP Script?

I'm learning AMP Script and I need to compare a variable with different countries and I'm wondering if, as dynamic block in Marketing Cloud, is it possible to compare a variable with different values. ...
0
votes
0answers
23 views

Is there a way to make the static recource name dynamic

I want to have a field in which I save the static resource name and dynamically show this in a visualforce page see my example if this is possible: <apex:variable var="Logo" value="{!Account....
1
vote
0answers
28 views

Lightning Web Component - Sort table columns

I'm trying to implement the sorting functionality on a lightning datatable in a lwc. The table display a list of Opportunity. But my problem is when I click on a column for sorting data, I am getting ...
0
votes
0answers
16 views

Is it possible to check if file exists in ftp before attaching it to email?

I'm trying to attach a file from ftp directory to the email by using ampscript function AttachFile. Everything works fine as long as the file exists in ftp directory. If it doesn't exist the email is ...
0
votes
0answers
4 views

How to extract 'Connect to Data'(Analytics) from one salesforce org and deploy into another salesforce org

This question is regarding Einstein Analytics. I created a 'Connect to Data' and a Data Recipe in one salesforce org. This steps created the dataset in that org. Then, I extracted the Data Recipe from ...
0
votes
0answers
15 views

Contacts with multiple email addresses tied to single ID - SQL Join

We have 2 data extensions which we would like to join. The first called "MasterContacts" has contact information, including multiple email addresses tied to one FederationID, which is present in the ...
0
votes
2answers
33 views

How to retrieve Parent's Id of a triggered child record, inside the trigger

Certification__c(Parent object) --> Exam__c(Child object) Trigger triggers when Child is updated. trigger certificationToFailedNew on Exam__c (after update) { //List out all the exams associated ...
1
vote
1answer
16 views

What is the object that holds Email Alerts?

We changed company name. I want to update the company-wide email address. Even in Dataloader it does not allow an update because the email is used in email alerts. I want to update the From email ...
2
votes
0answers
10 views

Marketing Cloud - email predictive content link broken after clicking multiple times

we implemented an abandoned cart journey builder which triggers an email. It contains a predictive content which recommends 4 products. Each product links the relative web page. The problem is ...
1
vote
0answers
15 views

Getting the highest Parent Account in Salesforce Hierarchy via SOQL/APEX

I am trying to get the highest level of parent account in an Account Hierarchy in Salesforce via Apex and SOQL. I want to create and MAP<Id, Set<Account>> hierarchy in my Apex class to ...
0
votes
1answer
17 views

Custom error messages on standard salesforce edit view from other object trigger

When I insert a Case I have a trigger that automatically inserts an opportunity among other things to that Case. When something fails due to an expected error I want to be able to customize the error ...
0
votes
1answer
13 views

user merge fields doesn't replace by user record ID

I am trying to send email through email template to user but It is always replacing the user merge fields by org admin's user name instead of targetobjectID user. Org admin : luke wright Email ...
0
votes
0answers
12 views

sforce is not defined in UAT, but in sandbox yes

I'm having this problem, and I've tried all the solutions that can be found in this world to resolve; I'm working with the opencti APIs, in an aura component, in the sandbox the component runs fine (...
0
votes
0answers
7 views

Using Specific filters for a lens in dashboard

I have a dashboard with few lenses in it. Among these lenses, there are couple of lenses that should change only when few filters are applied from all the filters. They should not respond to other ...
0
votes
1answer
18 views

How to insert order and orderitems in single rest call in salesforce

How to insert order and orderitems in single rest call in salesforce? Add an Order to an Existing Account https://developer.salesforce.com/docs/atlas.en-us.api_placeorder.meta/api_placeorder/...
-1
votes
1answer
23 views

I want to assign owners on the basis of city,state,area

i have a custom metadata object which has fields same as account object.the fields are city,state,area,owner..when i create account,the account owner of the account should selected on the basis of ...
-1
votes
0answers
17 views

Visualforce page Alert is not popping up

We have created a visualforce page for case creation from Community and using it at 'Contact Support Form' of community. When user enters values in all the fields and click submit button, it should ...
0
votes
0answers
8 views

Password lost from named credential in unlocked package

I have created an unlocked package. The unlocked package contains named credential. The unlock package process creation when failed when there was no in the file. So, I had to add actualPassword in ...
0
votes
0answers
9 views

visualforce form input text field not allligning properly

I have small help, i am designing visualforce page for displaying a web to case form, but when i click the preview button, the input fields are not showing properly, i even tried the & ...
1
vote
1answer
26 views

Lightning Path Style Issue in Lightnign Web Component

I am trying to create a lightning path in LWC, for which I used two components with SLDS Path. But the view is not as expected to Chevron. Parent Component: customPathLwc <template> <...
0
votes
1answer
12 views

Render if variable contains text value in visualforce

I am trying to use render if condition on a viasualforce based on a value containing a string but this seems not to work. What am I missing? See: <apex:pageBlock title="Manuals"> ...
1
vote
1answer
19 views

Can I use $Label.LightningControl in my components?

While reading documentation for the lightning:input aura component, I noticed that some attributes default to $Label.LightningControl.activeCapitalized or $Label.LightningControl.inactiveCapitalized. ...
0
votes
0answers
12 views

Does exist an expression lightning component and/or expression lightning web component equivalent to SLDS expression?

In the SLDS documentation, I've found a whole page about expressions, how to use them and how to make them similar to the ones implemented in Salesforce UI. Does exist something similar as a ...
0
votes
3answers
29 views

Error Error: Compile Error: Unexpected token 'lacc'. at line 5 column 4

public with sharing class Myfirstvfclass { public list<Account> lacc { get; set; } public Myfirstvfclass{ lacc=new list<Account> ([select id from Account]); } }
2
votes
1answer
25 views

Testing BatchApexErrorEvent trigger

I have a batch class which implements the Database.RaisesPlatformEvents interface. This interface has recently been introduced and helps log unexpected exceptions: https://developer.salesforce.com/...
0
votes
1answer
17 views

Can we have Popup alert on Standard page before saving a record [duplicate]

I want to have a validation before saving a record on standard page layout of a custom object. before saving a record a popup message should be displayed. is this possible using any customization or ...
2
votes
1answer
13 views

ContentNote - INVALID_INPUT which characters are invalid

I am trying to use REST API to update the content of ContentNote object. I am submitting base64 encoded content, e.g. this: PHA+cmFiYml0PC9wPjxwPjxicj48L3A+PHA+...

15 30 50 per page