Questions tagged [callback]
The callback tag has no usage guidance.
70
questions
0
votes
1
answer
38
views
How to determine when Queue is complete on LWC
I'm currently trying to create a tool that creates a metadata record in LWC. I'm using Metadata.Operators.enqueueDeployment(mdContainer, new DeployCallback()) to create a new record, and it's able to ...
0
votes
2
answers
41
views
Getting callBack error in Aura
Hello i am trying to show toast message in aura but i am unable to do so .Can you please review my code and tell me whats the problem .
component.cmp
<aura:component >
<lightning:button ...
0
votes
1
answer
482
views
Not able to render HTML in PDF using jsPDF library in LwC
I am trying to build a simple custom pdf in LwC using jsPDF v2.5.1 library and loading this library using loadscript in rendered callback method, now I am trying render HTML content in PDF using doc....
0
votes
2
answers
288
views
record page LDS not being refreshed after apex call-back
We're working on a custom datatable inside a quote recordpage. Such datatable, shows a list of QuoteLineItems that the user can insert/update/delete from the component itself.
Now, since we made the ...
0
votes
0
answers
113
views
Aura Component - Uncaught Error in $A.getCallback()
I have one Aura component created in 2019 by previous developer. This is dynamicPicklist which is taking records as values.
Sometimes after refresh I am getting error:
Uncaught Error in $A....
1
vote
1
answer
143
views
ChartJS Axes Callbacks not able to be passed from Parent to Child component
I am using ChartJS to display numerical values and I am looking to modify the Axes labels to display with commas. I want to do so by having the chart config look like:
var xyValues = [
{x:50, y:7},...
0
votes
0
answers
265
views
Lightning out App error in callback function in aura component created from vfp
I have a vfp as below called from a related list button which create an aura component:
$Lightning.use("c:LA03_SendFormToContact", function() {
$Lightning.createComponent(...
0
votes
0
answers
119
views
Subscription Filters for Event Notification Service - Transactional Messaging API
Our testing approach for Marketing Cloud transactional emails will rely on folder organisation and send definition keys that are prefixed with an environment name, as well as different installed ...
2
votes
0
answers
109
views
How to prevent unmounting of component when using errorCallback lifecycle method in LWC
I am having an root LWC component and nested inner child LWC components structured like below for example.
<c-application>
<c-header></c-header>
<c-form-container>
<...
1
vote
1
answer
562
views
errorCallback not catching exception in child when thrown in apex call promise
I have a web component (lwc) with a child component that makes an imperative server call. When an exception is thrown by the server the parent component is not catching it in the errorCallback. The ...
0
votes
1
answer
366
views
Fetch Auth. Provider Callback URL in Flows
I have successfully created Auth. Provider from my ScreenFlow.
I want to display the callback URL in the same flow.
Can someone please tell me whether there is any way to fetch the Callback URL of a ...
0
votes
0
answers
795
views
How can i show the api response in my component with toast
I call api rest with apex, in a lightning component: i have this code in apex class,
public static String agentesCrear(String agentesJson){
String bodyReq = agentesJson.replaceAll('\\[', '')....
7
votes
2
answers
888
views
When LWC that is used in Flow Screen is destroyed?
I need to detect when the LWC is destroyed, so far I haven't noticed that a disconnectedCallback has ever triggered on the LWC that is used in Screen on Flow. This creates a lot of problems because I ...
0
votes
0
answers
87
views
Forget password link from SSO does not redirect back to callback url
We have set up a connected app in Salesforce and configured a callback url for integration with a separate authentication management system.
When logging in from our application, upon successful ...
0
votes
1
answer
223
views
ReCaptchav2 check not working when enabling submit button
I'm developing an app on my Force.com site (https://desaeveris-unav.cs107.force.com/rentawayapp)
and I'm trying too add RECATPCHAv2 to my create account form. The goal is to keep the 'Register' button ...
0
votes
0
answers
415
views
Aura component: Mutiple $A.enqueueAction takes long time
I'm testing a component where I upload a file, convert to base64 and split into several CHUNK Parts send each one to an apex method.
This component seems quite common online. Like:
https://sfdcmonkey....
0
votes
1
answer
101
views
$A.getCallback() [Cannot read property 'setParams' of null]
I'm using strophe.js for a pub/sub model that I want to implement in my aura component.However when the callback is triggered and I want to fire the component it gives an error setParams null. Since ...
6
votes
0
answers
173
views
Connected App In Managed Package with Different Call-back URLs
We are working on an composite AppExchange Application. Which uses connected app to connect to Salesforce from the composite (external) App. As the composite (external) app has different call-back ...
2
votes
2
answers
276
views
Clarifying Refactor Lesson
To be very clear, this is not looking for a solution to a trailhead but the code does come from the lesson walk through where the writer does not give an explanation of why his refactor works.
The ...
0
votes
1
answer
300
views
Auth Provider Callback masking ErrorDescription
we have Azure as Auth Provider for our community users. For some reason whenever Auth flow is interrupted in Azure, SF masks result in callback call and error_description is removed.
Because of this, ...
0
votes
1
answer
518
views
Is it Possible to Apply the panelOnDestroyCallback Callback Parameter to the force:editRecord Event by Updating the $A Namespace?
Is it possible to update a copy of the $A namespace object to handle callbacks where they are not otherwise handled?
For example, the force:createRecord event has the panelOnDestroyCallback callback ...
0
votes
1
answer
202
views
Using landing page to receive data from a callback
I am using MC Event notification Service and I created a callback (using a 3rd party site) to receive data posted back from Marketing Cloud.
I want to see if I can utilize a landing page to receive ...
1
vote
0
answers
143
views
Open CTI Callback issue in Managed package
I am facing this issue that my Open CTI method callbacks are not executing in an org where I have installed managed package. They work absolutely fine on the org where I developed my application as ...
0
votes
1
answer
383
views
API integration with desktop application
I am developing a desktop application that uses API to read data from salesforce
I understand I need to authenticate it first. But when I read for some long time to do this, I found out I need to ...
3
votes
1
answer
4k
views
LWC pass callback function dynamically
I have a modal component where I am passing in two-button handler methods which are callbacks.
These two buttons are hooked up to a getter with the intent that I can override them, which I am having ...
0
votes
1
answer
1k
views
Using Promises not returning the resolve method in Lightning Component
I am trying to recall the apex method until I get a success response for status of log. Below is the code. checkIntegrationLog function simply check the status of a single Log and I want to call that ...
0
votes
1
answer
3k
views
construct a URL with pageReference params from LWC [duplicate]
I am trying to construct a URL PageReference to a visualforce page passing in paramaters for Docusign use. This is working in Aura and also as a Custom URL button using a {!URLFOR} function, so I ...
1
vote
1
answer
968
views
Handle response value in UI from Callback function in LWC
I am trying to show the returned response value from a callback function in the below LWC code. But nothing is printed. Could you please help me out how to achieve this. Below is the code.
<...
2
votes
1
answer
2k
views
Dynamically set Connected App Callback URL
I am trying to dynamically update the callback url in a connected app.
When creating a sandbox, I want to run an apex class that change the callback URL from a production to UAT callback endpoint.
...
0
votes
2
answers
1k
views
Handling Apex errors from the setCallBack function
Is there any better way to handle errors that comeback from the setCallBack function for Apex calls in Aura components?
Maybe a better way to get rid of some of the elses I have in in my logic?
...
0
votes
1
answer
253
views
Component Helper Async Issue?
I have a component that is using aura:iteration to loop through some data and output a table of results. One column in this table is a link to the record. I created a clickevent handler and a helper ...
3
votes
1
answer
850
views
Apex called from Aura omits null elements from response
It seems like collection types returned from the Apex to an Aura component omit null elements.
I noticed this when I was passing a List of Strings back from Apex. I was failing to get the second ...
3
votes
2
answers
443
views
I have two helper functions that are the exact same, one executes and one doesn't. How come?
So I have many of these, 10 to be exact and three won't execute, they are all the exact same and I feel I have been going around in circles for hours. I have noticed that if an apex method ends with ...
0
votes
1
answer
273
views
Custom validation message on Lightning Component
I am not able to show the custom validation error message based on my callback method in the helper class.
Controller.js
saveCase : function(component, event, helper){
var validTab4 = helper....
2
votes
2
answers
1k
views
DML operations in the Apex callback method
An apex method that returns a continuation object can’t perform DML. The solution given by the Salesforce developer documentation is the “perform DML operations in the Apex callback method”.
https://...
3
votes
1
answer
335
views
When and why do I need to perform an .isValid() check?
This document - Modifying Components Outside the Framework Lifecycle - says the following:
You don't need a cmp.isValid() check within this setTimeout() call as
the cmp.set() call doesn't do ...
1
vote
2
answers
2k
views
How to incorporate Consumer id and consumer secret in my REST API (Apex class)
I have a requirement where some external web forms would be calling our REST API to submit Lead. I have created a connected app, got the consumer id and consumer secret. I want my apex class to be ...
1
vote
0
answers
293
views
Lightning:recordForm onSuccess event not returning response
I'm trying to get the response in the onSuccess callback for a lightning:recordForm save event, but it's coming up as undefined. The callback is being called, I can log to the console, but both of the ...
0
votes
1
answer
1k
views
helper function undefined in helper after callback
In my helper function, I have two functions that are called: first one validates data that's in another component using an API,shipmentInfo.handleIsValid. After it returns the desired result, I get ...
6
votes
1
answer
281
views
Help Interpret Peculiar Way of Handling SUCCESS and ERROR in Lightning Callback
I didn't write but rather I'm reviewing the following Lightning JS function:
InitializeComponent : function (component) {
var recId = component.get("v.recordId");
var action = ...
1
vote
1
answer
3k
views
Callback after the record was created using e.force:createRecord
Are there a way to add callback after the user created a record and clicked the Save button?
I am using a custom tab and custom components and open the Create a record modal window using e.force:...
1
vote
1
answer
1k
views
Apex Paramater always null
I have an Apex method createRecurringEngagements that accepts a Boolean parameter jewishEducator (the last param). I print the parameter in the Apex class but it is always null. I tried accepting ...
2
votes
1
answer
694
views
The response from the backend takes too long
After performing the $A.enqueueAction(anAction); the response provided with anAction.setCallback(this, aCallback); takes too long to execute (I should wait for something like 1-5 minutes after $A....
1
vote
2
answers
253
views
callback in helper for multiple methods
I am trying to display a form with dropdown values; one dependent on the other. They work fine independently. But when I put them together with the callback, I do not get any values. Please assist.
...
2
votes
2
answers
120
views
HTML Button not calling Apex Controller
I am trying to call a controller function from a regular html button. However, I am having a hard time getting access the the controller.
I have this:
<button id="btn">My Button</button>
...
2
votes
1
answer
4k
views
Creating Generic Related List Lightning Component
I am trying to create a simple, reusable component that allows me to list related records in an easy to read way. I want to be able to use this component a few times on a single record, and I would ...
3
votes
3
answers
3k
views
Can we reload screen after Save from force:editRecord event?
I've a Custom Lightning Component displaying a List custom object records.
On each data row, I've custom button to Edit the record.
On Edit click, I've fired following event:
var editRecordEvent = $...
0
votes
1
answer
2k
views
Using Callback when calling server side function
I load some values using <aura:handler name="init" value="{!this}" action="{!c.loadOptions}" /> in my component. I want these values to be populated when my component is loaded. Basically it is ...
1
vote
1
answer
340
views
How to pass var to callback?
a today, i´m learning lightning, and i block with asyncronous callback.
To practice, i did a small helper with apex call and a callback, but when a update a var out of callback, the value in callback ...
0
votes
1
answer
798
views
Hide button afterRender based on callback result
I'm trying to hide buttons depending on some information that the callback function on "INIT" should give as result.
I'm trying to do it into a custom render "afterRender" as described in salesforce ...