Questions tagged [parameters]

A parameter is a variable, it is used in a subroutine to refer to one of the pieces of data provided as input to the subroutine. These pieces of data are called arguments.

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

Marketing Cloud UTM issue: Parameter Manager + Redirect issue + AMPscript

Im facing a redirect issue in my MC email links. Steps to reproduce: Creating a dynamic link with AMPscript Example: SET @magentourl = CONCAT('https://www.example.*/cart-link/cart/restore?token=',@...
0
votes
1answer
30 views

UTM tag issue in Parameter Manager (Web Analytics Connector)

I was just testing the parameter manager in Marketing Cloud. All utms I need are shown in the link when I send an email via journey builder. But now I noticed that there is a weird code added after ...
1
vote
1answer
27 views

How to pass map values on client side from component to controller

I currently have a child component to which I pass some map values from a parent component to an attribute in the child component on the client side. I used an example which gets map values from ...
0
votes
1answer
32 views

Is it safe to get currentPageReference in connectedCallback

I have a lightning component that may or may not accept query parameters. In the connected callback, I am trying to grab parameters from currentPageReference and if there are query params then I ...
2
votes
1answer
38 views

When LWC invokes a function, is it possible for the function to access arbitrary attributes in the invoking element?

Let's say my LWC has the following code: <c-widget-tile widget={widget} onwidgetselect={openWidget}></c-widget-tile> Assuming widget contains the data for an instance of Widget__c Is it ...
1
vote
0answers
29 views

Complex type passed by aura component to apex method

we have this inner class: public class Documents { @AuraEnabled public String type; @AuraEnabled public List<Custom_Document__c> documents; } And we use it in a method declared like ...
1
vote
1answer
380 views

LWC “Record Detail Page” for Custom Metadata Type

I'm exploring a concept that involves exposing Custom Metadata Type records to business users in a read-only format in a kind of pseudo-record-detail-page in Lightning Experience. My requirements are:...
0
votes
0answers
24 views

Unable to add the parameters to the URL in Salesforce lightning

We have a main visual force page in that based on the URL params, and I want to render one of the parts of page content. I can achieve this in Salesforce Classic: Example URL: https://ap5.lightning....
1
vote
0answers
14 views

Lightning Community: Current User ID as URL Parameter

In a Lightning Community, is it possible to reference the current user's contact ID as a URL parameter? I want to link directly to the community user's contact record so they can update their contact ...
0
votes
1answer
36 views

Event parameter gone immediately after setting

The core of my problem is this piece of code: let eventOut = $A.get("e.force:navigateToComponent"); console.log('eventOut = ' + eventOut); eventOut.setParams({ "message": theMessage }); console.log(...
0
votes
1answer
27 views

Return back to Account after saving or cancel

I've a requirement, where I want to edit a task. Task are displaying as a VF Page in Pageblock Table. I've used action="{!URLFOR($Action.Task.edit,items.id)} on commandlink. Can anyone please let me ...
0
votes
1answer
295 views

How to pass custom parameters to screen flow in public community?

Thanks for the help in advance. I'm passing a URL in an email. The URL sends the user to a public community flow page where a screen flow starts. This all works. I have a custom parameter in the ...
0
votes
1answer
51 views

Is it possible to create a parameterized SQL SFMC activity?

I find it hard to believe that based on this documentation, input parameters cannot be passed into a Salesforce MC activity. I can use a journey builder activity to perform a row update, however I ...
1
vote
1answer
49 views

Passing List into Apex - Want to insert individual attributes from list

I'm having some difficulty with lists and apex. I have a list declared in my lightning component, please see below: <aura:attribute name="AssetsList" type="List" default="[]"/> I then set ...
1
vote
1answer
137 views

Use sfmc_id in single send and not in JB - Google analytics 360 integration

Firstly, I never integrate a MC BU with a GA360 environment. To my understanding of the documentation about the integration, it's works only with the emails sending from the Journey Builder. But I ...
0
votes
1answer
220 views

How to define a constructor and pass parameters to schedulable controller

I have a situation where I need to pass a string to schedulable controller from batch or any apex controller. I see that we can do it using public constructor in schedulable implementation. Please let ...
0
votes
0answers
22 views

Can we set and get @API value for managed package components?

While we create the managed package and import that with another ORG, we can't pass the dynamically values to that components. in other hand, same will be working as expected with unmanaged package. ...
1
vote
1answer
33 views

Increment different fields based on parameter?

I have a method for opportunities that increments a field and I would like it to be dynamic/able to make it increment different fields based on a parameter. How would I go about accessing this field ...
1
vote
0answers
52 views

Conga Composer: set default parameters on layout of tool [closed]

My question can be trivial but I'm struggling with following problem: when I open Conga Composer tool, I have few options to choose: My goal is to set "Enable" as default to Save a Copy in Notes &...
0
votes
1answer
21 views

stringified list of Orders-Parameter from JavaScript Controller not passed into Apex Controller

I want to pass a list of Orders from the JavaScript Controller into the Apex Controller. When I debug, I get a value for the list of orders in the JavaScript Controller, but the Apex Controller does ...
0
votes
1answer
187 views

When I pass a parameter to the JS controller via event.currentTarget.dataset it gives undefined

In an aura:iteration, I pass the selected Order to the JS controller as in the code: <aura:iteration items="{!v.ordersAlt}" var="item"> <tr class="slds-hint-parent"> <...
0
votes
1answer
56 views

Dynamic value does not show on html input textbox - rerendering necessary?

I am setting up a lookup component, but when I want to display the selected option in the textbox, the value does not show. However, it is written on the console, so the logic works. Also, when I ...
0
votes
1answer
116 views

Passing argument to List<Messaging.SingleEmailMessage> method

Hi I create List method with many parameters required than later be called in another void method sendRenewalReminder but I get this error Error: Compile Error: Method does not exist or incorrect ...
0
votes
1answer
110 views

How To Pass a hidden parameter to another component using salesforce lightning?

I want to send a parameter in a hidden manner from one component to another in salesforce lightning. The normal Syntax would be this - navigate : function(component, event, helper) { //Find ...
2
votes
1answer
45 views

How to reference parameters outside of Apex Class that can be configured by Administrator

Here is an example of the challenge I have faced multiple times. I was wondering if anyone could offer best practices on how they handle situations like these. I have an apex class that process ...
1
vote
1answer
64 views

how to make test class for controller with parameter canvas.toDataURL()

I made extension class and VF page for getting signature image. I confirmed it works well through many test . And then, I need to make test class to deploy that extension class into production org. ...
0
votes
1answer
24 views

Parameter not returing from visualforce to controller

I am trying to pass a parameter from visualforce on pageload to controller but this is ending up empty. What am I missing? VFP <apex:page standardController="Contact" recordSetVar="record" ...
0
votes
1answer
30 views

How to test a page with parameters

I am writing a unittest for a pagereference where I add some variables I currently get only 47% coverage. How do I pass the variables correctly. I currently get the error: System.NullPointerException:...
1
vote
0answers
208 views

List Button is not passing parameter in URL for a particular profile

I have a list button on a related list of custom Object ABC under Contact object which redirects to a VF page (custom record creation page for ABC). I am passing contact id in the URL so that contact'...
1
vote
1answer
163 views

[APEX]: Way to iterate over method parameters

I have a method that accepts 4 parameters. I want to do the same action for every parameter if it's not null. Is there a way to iterate over all parameters rather than building if blocks? So for ...
1
vote
2answers
3k views

Why am I getting “Static method cannot be referenced from a non static context: String String.valueOf(Object)”?

I have this static class called from my lightning component, but am getting the error "Static method cannot be referenced from a non static context: String String.valueOf(Object)" on the line ...
0
votes
1answer
236 views

Change Url Params

I got lost here with an issue when I try to achieve a case which a user can click on a button and change the language of a form in visual force page. I know a way which works but don't support IE ...
0
votes
1answer
1k views

Access parent record id from visualforce page called in custom list button?

I’m trying to create a custom List button that can call a Lightning Component. However because that’s not yet directly possible, I’m trying to embed the Lightning Component in a Visualforce page and ...
2
votes
3answers
855 views

How to pass dynamic arrays in Lightning

I'm not able to pass a dynamic string array into a component without using java script. Example: values="{!v.foo + ',bar'}". In this example, the (expected) array seems to be passed as a String. I ...
2
votes
1answer
397 views

Using queryLocator in the REST API /services/data/v44.0/jobs/ingest

I am doing a report for my Jobs and I need to return a specific Job information using the REST API /services/data/v44.0/jobs/ingest. When I am using the REST API, it is limited to 1000 records. I ...
3
votes
1answer
737 views

Pass an enum value from lightning controller to Apex

Is it possible to pass an enum value from lightning controller to Apex? Here is what I tried lightning component part const action = component.get("methodC"); action.setParams({p: "VIEW"}); ...
2
votes
2answers
7k views

How to pass parameter to flow launched from Quick Action

I have created a quick action in account and launched a flow. I need to get account id in that flow. Is there anyway to achieve this? Currently I implemented with a custom url button and passed ...
0
votes
1answer
31 views

Actionfunction doesn't work

I cannot find the reason of this situation. Please help experts. I have several actionfunction and all of them are using for saving value to Controller variables. I this situation, one of them doesn'...
2
votes
1answer
809 views

Generating reports through custom link which works in Lightning as well as Classic

I want to create a custom link to navigate to a report mentioned based on the parameter passed to it but for creating a custom link which navigates to a report in Classic we need to pass the parameter ...
0
votes
1answer
810 views

Field Service Ligthning Mobile App Extension URL Global Parameters

I wants to open iOS app using app extension from Field Service Lightning(FSL) application. Is there anyway to open the iOS app with the same session from which the FSL app is logged in(like passing ...
0
votes
1answer
85 views

Need help to pass Account Id as parameter of Command Link

I have a VF Page Account Detail hich displays list of account Names. The account Names are command link and clicking on the link redirects to another page which displays the account Id. I have ...
1
vote
1answer
727 views

How to put a list in the parameter for class and use its variables?

I have a JSON and I need to pass the data to a list, then use it as my class parameter. I've managed to pass JSON to a List, but when I put it in the class, it throws the following error: "global ...
2
votes
1answer
3k views

Passing parameter in URL in Lightning component tab

I have created a Lightning Component Tab and i have to pass parameter in its url (Specifically Opportunity Id). Email with link will be sent to the user and when user clicks on that link that ...
1
vote
1answer
75 views

Populating multiselect picklist from page reference

I'm sending some parameters to custom controller of my object, which should be populated on multiselect picklist. In controller I'm creating a new Page Reference, where I put all parameters by using ...
1
vote
1answer
746 views

How can I pass a custom object type as a parameter in a method call?

I am working on a Lightning Component and I am trying to refactor my code. I have four combo boxes set up to query junction objects. The selection for object one determines what fills the list for ...
-2
votes
3answers
6k views

Pass a JavaScript object to Apex controller in lightning

Is it possible to pass a JavaScript object to Apex controller in lightning? Here is what I tried: @AuraEnabled public static void changeProgram(Object info) { update new ...
0
votes
2answers
375 views

PageReference .getParameters Method - Javascript Equivalent

Is there a javascript equivalent to the .getParameters method of the PageReference Class? Elaboration of what I'm trying to do: I am have a VFP search page and a CTI adapter. The CTI adpater pops ...
3
votes
1answer
3k views

Pass parameters to lightning component from a quick action

I built a quick action on Campaign that opens a lightning component. I am trying to pass parameters like, say the Id and the name of the Campaign. Earlier I built this using Detail Page Button and ...
1
vote
1answer
79 views

How Exactly Do the Class and Trigger Connect in this Design Pattern?

Early on as an Apex developer, I adopted the following one-trigger-per-object design pattern: Class public with sharing class caseTriggerHandler { public static boolean firstRun = true; ...
-1
votes
2answers
34 views

actionFunction doesn't work when not using all the parameters

I'm using the actionFunction to call a method to create payments from my visualforce page. The thing that changes is the payment type (sometimes its cash sometimes its check and sometimes both). The ...