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 votes
1 answer
25 views

The formula expression is invalid: Incorrect number of parameters for function 'IF()'. Expected 3, received 2

Receiving an error when trying to save the below formula. The requirement is that if the first variable is empty, to retrieve the value for the second variable. IF({!var_EmailAddress_1} = "",...
user avatar
1 vote
1 answer
101 views

apex pass parameter null

I'm trying to pass a pasrameter to mi apex class to search a contact but when i debug that parameter in the apex class, always return "null" and i dont know why... someone knows why? Thanks! ...
user avatar
1 vote
0 answers
70 views

HTML Email Template URL Base64 Encode

Based in question HTML Email Template URL Encode That it exposes the problem like: <a href="http://example.com/?region={!URLENCODE(Contact.Region__c)}">Click me</a> I am trying ...
user avatar
  • 111
-1 votes
1 answer
36 views

get Param return undefined [closed]

my code is : ({submit : function(component, event, helper) { var msg = component.get('v.inputValue'); var mainMsg ="Hey this is "+ msg + "." ; var ...
user avatar
0 votes
0 answers
40 views

Add Parameter to Aura Components Apex Controller

I am relatively new to aura components and am having trouble understanding the interconnectivity between files when using parameters in functions. I added the "enrollmentId" parameter along ...
user avatar
0 votes
1 answer
117 views

LWC build Title component [closed]

In the process of developing an lwc component that can accept values such as Title, font size and icon name during LWC configuration and the padding and margins should be same as Salesforce out of the ...
user avatar
0 votes
1 answer
83 views

What is the correct way to pass parameters to Lightning JS controller from anchor <a>

I have anchor tag in the lightning component and trying to get the value on user click the hyperlink. //cmp <aura:iteration items="{!v.refDataList}" var="refData" indexVar="...
user avatar
0 votes
1 answer
374 views

How to Send user attributes from Interaction Studio to Cloudpages

I have a popup that appears when a user visits the sites homepage. This popup asks the user to update their email address by visiting a cloudpage. The campaign only targets specific users, and ...
user avatar
  • 13
0 votes
0 answers
31 views

Pre-propulate multiple picklist values via flow that contains comma

Hello dear community, I hope you can give me some answers to my problem. I have a multiple picklist field that contains, for example, following values: Development Analytics, Sales Sales Marketing &...
user avatar
1 vote
1 answer
96 views

Parameter Manager: Set default value for parameter but still allow it to be edited in email properties

We use the following WAC string (I put in line breaks so its easier to read): utm_source=%%__AdditionalEmailAttribute1%%​ &utm_medium=%%__AdditionalEmailAttribute2%%​ &utm_campaign=%%...
user avatar
  • 733
1 vote
1 answer
2k views

action.SetParams not passing parameter through to Apex Class as expected

I'm currently modifying a Lightning Component that someone else created. As such, I'm trying to get the hang of how to work with Aura as I haven't done it before - only Apex and a bit of Visualforce. ...
user avatar
0 votes
0 answers
45 views

Unable to pass parameter to apex controller via JS

I already had a working apex function with various string parameters that I pass via the JS helper. I just added a new String parameter "reasonPick" to the apex function however when I try ...
user avatar
  • 1
0 votes
1 answer
193 views

Pass object of custom class as parameter to another class

I want to make something like in the code below, but it didnt work. Erorr: Method does not exist or incorrect signature: void method1() from the type SObject. public with sharing class Test1{ ...
user avatar
0 votes
1 answer
315 views

How to remove parameters from my URLS [closed]

I have parameters at the end of my product URL and I do not know at to remove them. Here is the type of parameters I have : ?categoryID=10100#start=0 I thought it would be in URL rules but I couldn't ...
user avatar
0 votes
2 answers
104 views

How To Get URL Into Controller On Mobile

How do I get the URL (specifically the parameters) into my Controller from a VF Page when the device is a mobile phone? The VF Page is housed on a Community Page. I can get the URL param just fine ...
user avatar
  • 21
0 votes
1 answer
114 views

Navigating to a component in Communities

I have a simple parent child component. This is surfaced in the community, and for some reason, the parent component is not able to call the child component via the lightning:navigation service. I ...
user avatar
  • 372
0 votes
1 answer
183 views

On second navigation to sub-tab window.location is pointing to main tab url

I am using query parameters in the URL to pass attribute to app page sub-tab. let paramsURL = decodeURIComponent(window.location.search.substring(1)); If I open the tab first-time it open without any ...
user avatar
0 votes
1 answer
513 views

How to pass multiple parameters in a Pardot form URL into Salesforce?

Hello and thank you in advance - How do I pass multiple parameters in a Pardot form's URL into Salesforce? I have tried: https://go.test.edu/l/848213/2020-12-21/5aaa0?Status=Active&Stage__c=Lead ...
user avatar
1 vote
2 answers
222 views

Writing a formula ... IF more than one picklist field (of 10 fields) has a non-blank value

Hello and Thanks in advance, How do I write a formula to fire as true, if more than one (of 10) different picklist fields has a non-blank value? If have tried ... ( IF(NOT(ISPICKVAL(Field_A__c,"&...
user avatar
0 votes
1 answer
216 views

Virtual and Extend Apex Class - accessing parameter in child class

The first code snippet is from a separate class that calls the OnfidoAPI class which is an extension of the APIBaseUtil and passes over the parameters to APIBaseUtil. My understanding was that the ...
user avatar
0 votes
1 answer
1k views

Passing parameter from Lightning Component to Apex Class

this is probably a very common use case but I am struggling here. I want to make a query in apex based on a string I am sending from my component to the class. But it is not pulling any data. Here is ...
user avatar
0 votes
1 answer
338 views

How to get status of a checkbox from visual force page to controller

I am trying to show an error message when the checkbox is not checked. How do I pass the checkbox parameter from visualforce page to controller so that I can compare the status of checkbox and display ...
user avatar
  • 19
0 votes
1 answer
174 views

Passing parameters from test methods

I am facing difficulty in passing parameters to apex method from test method. In apex method, I am getting parameters from my VF page. Example of Apex Method: public PageReference create_contact() { ...
user avatar
  • 33
0 votes
1 answer
48 views

Cannot include User lookup in navigation url

I am using the Spring '20 feature Navigate to a Record’s Create Page with Default Field Values to create a detail page URL button on the Account page called "New Opportunity". It ...
user avatar
  • 322
2 votes
1 answer
792 views

Special Characters in rest API URL

Is there any way to handle a & in a params being sent in the URL of a restAPI call. So that the system doesn't think this the end and start of a different params? The URL being sent is below: /...
user avatar
0 votes
1 answer
75 views

Can i use Trigger.* in Batch constructor?

This is my batch constructor : public void RelateContactAccounts() { Map<Id, List<Id>> accountContactRelationIdsMap = new Map<Id, List<Id>>(); for (...
user avatar
  • 31
0 votes
1 answer
1k views

LWC pass date to @wire apex - how to initialise date variable?

I have a component that on first load should display all accounts where a last verified date is 2 years or older. The component has a date selection field where the user can select a different date, ...
user avatar
  • 1,377
1 vote
0 answers
807 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=',@...
user avatar
0 votes
1 answer
338 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 ...
user avatar
  • 1
1 vote
1 answer
377 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 ...
user avatar
  • 2,092
0 votes
1 answer
911 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 ...
user avatar
  • 355
2 votes
1 answer
42 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 ...
user avatar
1 vote
0 answers
46 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 ...
user avatar
  • 1,439
1 vote
1 answer
3k 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:...
user avatar
2 votes
1 answer
361 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 ...
user avatar
0 votes
1 answer
157 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(...
user avatar
0 votes
1 answer
63 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 ...
user avatar
  • 17
1 vote
1 answer
3k 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 ...
user avatar
  • 303
0 votes
1 answer
546 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 ...
user avatar
  • 125
1 vote
1 answer
680 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 ...
user avatar
  • 13
2 votes
1 answer
548 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 ...
user avatar
  • 199
0 votes
2 answers
1k views

How to define a constructor and pass parameters to schedulable controller [duplicate]

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 ...
user avatar
1 vote
1 answer
40 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 ...
user avatar
1 vote
0 answers
212 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 &...
user avatar
  • 11
0 votes
1 answer
43 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 ...
user avatar
0 votes
1 answer
2k 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"> <...
user avatar
0 votes
1 answer
194 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 ...
user avatar
0 votes
1 answer
594 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 ...
user avatar
0 votes
1 answer
268 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 ...
user avatar
2 votes
1 answer
75 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 ...
user avatar
  • 1,214