All Questions

Filter by
Sorted by
Tagged with
1
vote
0answers
11 views

LWC function calls - Apex Method Imperatively

import { LightningElement, track, api} from 'lwc'; import saveRecord from '@salesforce/apex/Controller.saveRecord'; export default class CreateModel extends LightningElement { @track showModal=...
1
vote
1answer
14 views

getRecord in connectCallback

I saw the following example of getting record : import { LightningElement, api, wire } from 'lwc'; import { getRecord } from 'lightning/uiRecordApi'; const FIELDS = [ 'Contact.Name', '...
0
votes
1answer
16 views

Pick List values added dynamically in Java Script are not reflecting in Lightning:combobox LWC

I am trying to pass a list of pick list values dynamically to lightning-combobox , but the values are not rendering in the list. Below is the sample code i am writing. JS Code: @track EmpList= [{ ...
0
votes
0answers
13 views

Generate PDF from .doc file

I want to generate the pdf file from the doc(word document) file attached on the object. The doc file contains merge fileds in it. When we click button on the objects record, the pdf file should get ...
1
vote
1answer
36 views

salesforce identify if current time in a timezone exists between a particular time range (only time not date)

It may be a stupid question but i am trying from couple of hours and also searched on google but did not find anything. List<User> users = [Select id, TimeZoneSidKey from User]; system.debug(...
0
votes
0answers
18 views

Checking previous metadata deployments

So I'm playing with deploys using the metadata API and I have 2 questions. I noticed that when you deploy using metadata the deploy name in "Deployment Status" is just an Id, can I change the name? I ...
0
votes
0answers
20 views

How to Use Formula Field to Log Out and then Open a URL?

Background I'm trying to set up a Formula (Text) field with the HYPERLINK function to log a user out of their session and then open an external URL: HYPERLINK("/secur/logout.jsp?retURL=www.google....
0
votes
2answers
40 views

Outer Class can have how many inner class(es)

In Apex, how many inner classes can an outer class have?
1
vote
2answers
53 views

Icon is not displayed in lwc

icon does not appear on page <span class="slds-icon_container slds-icon-doctype-xml" title="Description of icon when needed"> <svg class="slds-icon" aria-hidden="true"> <...
1
vote
1answer
35 views

Send data from de in email to landing page

Test send failed to send. Need more help regarding this error? Open a support case through the Help & Training Portal HTML Version There is an error in your email. Please contact your customer ...
0
votes
0answers
19 views

Best plugins for Upload file in Share Point through Salesforce [on hold]

I have to upload the files in Sharepoint through salesforce. Can anyone suggest the best plugin for upload the files.
0
votes
1answer
35 views

Batch Test class not calling execute method

I have created below batch apex class. I have also created test class for this. But this test class is only covering 27% of batch apex class. Also, it is not calling execute method of batch apex class....
0
votes
0answers
22 views

Analysis for SFDX Apex || sonarqube Community Edition

Is there a way to support SFDX Apex Analysis with sonarqube Community Edition version 7.2 or above. If not then is there any previous Community version which may support it ? Many thanks in advance.
-3
votes
3answers
30 views

How to get the Latest record created date in salesforce?

I have a field called "Date" on custom object "TestData__c". If I create a record today I need to display today date.If I create a record tomorrow I need to display Tomorrow date.How Can I achieve ...
-1
votes
1answer
31 views

SObject row was retrieved via SOQL without querying the requested field: Webinar_Attendees__c.Voucher_Assign_Date__c

'm trying display parent fields and sub query fields in a table.But I'm unable to display sub query fields.Could anyone suggest an idea for me Page : ====== ...
-1
votes
1answer
21 views

Loop must iterate over collection: Webinar_Attendees__c

I'm trying to print sub query fields but I got the error like "Loop must iterate over collection: Webinar_Attendees__c". list<Webinar_Attendees__c> re = [SELECT Id,Login__c,Name,...
0
votes
0answers
18 views

Salesforce Communities - Generic unsupported browser page

We recently published a community that was publicly available and was built using the community builder. We have our own unsupported browser page that is displayed if the user's browser does not meet ...
1
vote
1answer
26 views

In lightning-record-edit-form handleSubmit is not getting called

Problem : In lightning-record-edit-form handleSubmit is not getting called Details : Below is the code and when user clicks on "Update Opportunity" record is getting saved but nor handleSubmit nor ...
0
votes
0answers
9 views

How to programattically edit a document / sheet in Quip?

I've read the documentation but I still don't know if the following is possible: I have a regular Quip doc with a table/spreadsheet in it. In it I have a column with an "ID". In another column I have ...
2
votes
1answer
29 views

Building an efficient LWC form without record-edit-form

I'm new to Lightning web components (LWC) and I'm trying to find the best way to build an input form where I need to control the submit process - I need to do extra validation and then construct a ...
5
votes
1answer
38 views

pester mode not working for showToastEvent in LWC

I have a Lightning web component (LWC) using showToastEvent. The pester mode is not working right -- I do not see a close icon and it closes automatically in 3 seconds. This answer says to clear the ...
2
votes
1answer
20 views

Altering styling based on row order of ampscript loops

I have a table of the top 3 food brands available at each location. I.e. Location | Brand ----------------------- New York | Coffee Shop New York | Bagel Shop New York | Deli Houston | ...
0
votes
1answer
20 views

How to Refresh an existing Filtered Data Extension without Filter Activity / Automation?

I know that there is the process to create a filter definition, a filter activity and then have these run inside an automation to automatically update filters. But this means that you need to ...
0
votes
0answers
9 views

Binding the Initial Filter Selection - Multi-value List Selector

I'm surfacing a list selector widget on my dashboard that allows a user to select a Year and Quarter in a single step. I want to bind an initial value to this list selector based on the derived date ...
2
votes
2answers
45 views

Can APEX perform a bulk INSERT INTO…SELECT FROM like statement dynamically?

The basic question is if it's possible to create an INSERT operation using a SELECT statement as the source, rather than selecting individual records, pulling them out of the Salesforce database into ...
4
votes
3answers
87 views

How to mock ApexTestQueueItem, AsyncApexJob, and ApexTestResult for test coverage?

I'm currently working on a set of classes that do the following: A class that when instantiated and executed, queues all Test classes in Apex to run by inserting ApexTestQueueItems. I call this one ...
1
vote
0answers
19 views

Sub domain issue in Marketing Cloud

So we have many issues with the sub-domain that we are using with the marketing cloud. One of them is: If we want to reply to the emails from Outlook, we get an error message that says: Undelivarable ...
0
votes
1answer
32 views

How to get file name in http response?

I am using apex code to get file from url and able to insert it as attachment. I would like to know file name as well while insert ? When I open link in chrome it save the file with file name. ...
2
votes
0answers
37 views

LWC: CSS animations from different components colliding with each other

I just noticed that two of my Lightning Web Components' animations are colliding with each other. Fragment of Component #1: HTML: <template> <span class="my-element" if:true={showModal}...
-5
votes
0answers
48 views

http request issue

HttpRequest req = new HttpRequest(); req.setEndpoint('https://www.impots.gouv.fr/secavis/faces/commun/index.jsf '); req.setMethod('POST'); // our code has to specify: // - The required numeroFiscal ...
0
votes
1answer
18 views

Prevent Automatic Creation of QuoteLineItems

When you go to create a Quote, Salesforce automatically grabs the Products from the Opportunity and creates QuoteLineItems. Is there any way to override this behavior?
-2
votes
1answer
30 views

post html form outside of salesforce form

I tried to send data with this form to retrieve the html answer but it does not work someone already had a similar issue? <apex:page standardController="Lead"> <form action="https://cfsmsp....
0
votes
0answers
8 views

Setting Event Action and Event Label to send to Google Analytics

I have Google Analytics running on my Community. I am using Javascript to send event information to GA when a user clicks on a button. Additionally, SF automatically sends a "Searched Community" ...
0
votes
0answers
12 views

How do I stop oncomplete action on button if action throws error and display the error, on a modal VF page?

I have a modal VF component displayed over a VF page (opened as a result of click on a button on the underlying page), from which I enter a few criteria and then click a button to generate a VF PDF ...
0
votes
1answer
42 views

Invalid Conversion Runtime Type List<> to Map<>

I understand I am getting this error on the map line but I do not understand why. As the method does return the list I am constructing. What am I missing about this exactly? The dataRequest starts as ...
0
votes
0answers
29 views

Escaping HTML in JSON in rest callout

I am sending some html content inside json in the body of a REST callout from Salesforce to Dotdigital per their specs which is working well overall. string.escapeHTML4 is handling most of the ...
1
vote
3answers
32 views

Is it possible to create a supression list purely based on domains (not full emails)? For example for competitors?

Is it possible to create a suppression list purely based on domains e.g. for competitor domains without having the full email address of these contacts. This would allow to automatically exclude any ...
0
votes
1answer
18 views

How can I save fetched JSON to a custom object's custom field. JSON parameters do not have same name as custom fields

On doing Something like this: o.FieldName__c = str[i].FieldName; //o instance of Custom Object and str is deserialized List. An error pops up showing 'variable does not exist: FieldName'. If I use ...
3
votes
1answer
151 views

Will Force.com stop working on salesforce Lightning?

I would like to know if the October 2019 switch from salesforce classic to lightning. Will the force.com pages stop working?
5
votes
0answers
32 views

How can I unit test a http callout that uses a certificate?

The .setClientCertificateName method of the HttpRequest class requires a string that is the name of a certificate in the organization. In a unit test class, is it possible to mock this method? When I ...
-2
votes
1answer
12 views

Records are not displaying immediately,It needs to refresh page again.How can I display records without refreshing page?

I'm trying to display records in panel2 after clicking a button in panel 1.But records are not displaying immediately after clicking a button.Initially panel2 displays empty,after refreshing page ...
4
votes
1answer
40 views

Scratch Org project-scratch-def.json features: do they matter for Enterprise and Developer Editions?

Does the features property matter in the project scratch org I have messed around adding features from documentation on Scratch Org Definition File, but it doesn't seem to impact the scratch org ...
0
votes
0answers
17 views

Flow is not loading in Flow Builder

We have a custom app that creates a flow through apex and there's url redirect button once the flow is created. I am getting below error when i click on the redirect button. I can see the flowId (...
1
vote
0answers
15 views

Enable Lightning runtime for flows

I have a Softphone Layout that needs to call a lightning component from a flow. I wanted to call the lightning component from a Visualforce page so I could set the finish location. When I try to ...
0
votes
0answers
16 views

How can we get the session ID of salesforce in VeevaCRM (MyInsights)

How can we get the session ID of salesforce in VeevaCRM (MyInsights). We have logged into VeevaCRM using the “xyz@account.com”, We have created an MyInsight Test Report. We need to sign into the ...
-2
votes
1answer
22 views

Encountering “Missing targetObjectId with template” error when trying to send email template using Apex trigger

Goal: Send an email template using Apex. Error encountering: Error: There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered ...
0
votes
0answers
21 views

I am unable to obtain access token using OAUTH 2.0 SAML Assertion Bearer flow in python [on hold]

I am trying to create a SAML Assertion and then post it to the oauth endpoint to obtain the access token in response in my office sandbox environment. Following is my python code: SFSAMLAssertion.py ...
1
vote
1answer
17 views

Help with Validation Rule on Contact

I want to Create a validation rule on contact object so that if the user profile = Services User, the Contact Name field is not editable. Solution : AND(ISCHANGED(FirstName), ISCHANGED(LastName)...
0
votes
2answers
17 views

Custom field inside WSDL without having this field on the object

is it possible to have a custom field inside the WSDL like: <xsd:element name="CustomField_1__c" minOccurs="0" type="xsd:string" nillable="true"/> but do not have the field on the object ...
0
votes
1answer
18 views

MarketingCloudSDK without CoreLocation (duplicate?)

I'm not permitted to comment on that thread, so here's a duplicate and an update request on MobileCloudSDK without CoreLocation I have tried to set "location" to false in the ...

15 30 50 per page