Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

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

Personalization strings

Is there any personalization string that brings the name of the journey? I need to automatize the utm_campaign in Parameter Manager but it only allows me to use the Email name. Is there any trick to ...
malena's user avatar
  • 21
0 votes
1 answer
69 views

UTM solution for Dynamic Email

We have a dynamic email template where we populate content via AMPscript from a Data Extension for different locales. I'd like to enable Web Analytics Connector for our account however I'm not quite ...
DBK's user avatar
  • 1
0 votes
1 answer
837 views

Passing String Variable from LWC to Embedded Screen Flow

I have an LWC in Experience Cloud where I’m trying to pass a variable which I grabbed as a URL parameter to a flow embedded in the LWC. The html file renders the output from JS, but when I try to pass ...
Taku's user avatar
  • 5
0 votes
1 answer
53 views

Adding new Apex class

I have a problem with my Apex classes. I have code which would take amount and divide it by each month to have forecast. I have code: trigger Income on Opportunity (before insert, before update) { ...
Szymon Rola's user avatar
0 votes
0 answers
38 views

Why do annotation parameters not use a comma as separator?

Looking at the official documentation for the annotation InvocableMethod we can see that the parameters - unlike other languages I know - do not use a comma as a separator for the parameters. Any ...
Semmel's user avatar
  • 2,497
0 votes
1 answer
552 views

How to get the parameter value from LWC when this parameters was passed from lightning record page

I want to pass a parameter value from a Lightning Record Page to LWC, but I did not get the parameter value. <?xml version="1.0" encoding="UTF-8"?> <...
Bruce Wang's user avatar
1 vote
1 answer
802 views

Process map of objects from LWC in Apex controller

I'm creating new records in my LWC and have a map to allow for updating values before doing the save and I finally got the LWC to communicate with the controller, but the values sent seem to be empty, ...
Irene's user avatar
  • 1,839
-1 votes
1 answer
70 views

How to pass value to attribute in visualforce page

I have an attribute which I want to pass to a visualforce component, how do I achieve this. Currently I get the error: expecting a boolean Photoshoot="{!IF(!opportunity.Quote__r.Photoshoot__c!='',...
Thomas's user avatar
  • 2,298
0 votes
1 answer
655 views

Get Parameter ID from the Community URL after redirect

I have a screen flow that displays the accounts that a user is associated with. There are hyperlinks to display the name and when clicked opens a new browser with https://my_custom_url/pocdiy2/s/...
user125877's user avatar
0 votes
2 answers
307 views

Unable to pass parameters to visualforce page - Error "Value provided is invalid for action parameter 'templateId' of type 'Id'"

I have a visualforce page that I'm using to redirect a user to a second and final visualforce page in an attempt to bypass a CSRF Token request (it's from a managed package). I can't seem to get the ...
KB2021's user avatar
  • 83
-2 votes
1 answer
35 views

Get recoird id Error attemp to de-reference a null object

I'm using apexpages.currentpage().getparameters().get(‘id’) but when i run the class the developer console returns: attemp to de-reference a null object this is the url: ...sandbox.lightning.force....
Lucas's user avatar
  • 1
0 votes
1 answer
116 views

Incorrect IF formula : expected 3, received 4

I need to add some lines into a formula and I started it but I'm stopped with the following issue : Incorrect number of parameters for function 'IF()'. Expected 3, received 4. I saw there's another ...
TDFR's user avatar
  • 1
0 votes
1 answer
825 views

How can I pass a parameter into the batch class?

How can I pass a parameter into the batch class? How do I change the executeBatch to add a parameter? I need a parameter to make the query dynamic. The Status can be changed. Id bc = Database....
FenTro's user avatar
  • 29
0 votes
1 answer
114 views

Passing subscriber data from Email to Cloudpage in Different BU

I currently try to do the following: If a subcriber hits a button in the email i want to pass- the subsciber information from Email into a CLoudpage which is in a DIFFERENT BU. CloudPageURL function ...
Werner Holm's user avatar
0 votes
1 answer
3k views

Passing a method as parameter from a parent LWC to a chil LWC

Hello, I develop on an existing LWC and there is something I don't understand. There are 2 custom LWC and the parent LWC calls the child LWC by passing a method (from him) as a parameter the child LWC....
Oupat's user avatar
  • 733
0 votes
0 answers
243 views

Not able to pass form information to a FormHandler cloudpage which is located in parent (different) BU

I have a cloudPage with a form and i need the values to be stored in a DataExtension in current BU and then pass the values to a FormHandler Page which is stored in another BU (same Account) I want ...
Werner Holm's user avatar
-1 votes
1 answer
318 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} = "",...
user115088's user avatar
1 vote
1 answer
1k 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! ...
Luca Pattin's user avatar
1 vote
0 answers
594 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 ...
shakaran's user avatar
  • 111
-1 votes
1 answer
83 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 ...
Tushar Goyal's user avatar
0 votes
0 answers
228 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 ...
Austin Kelly's user avatar
0 votes
1 answer
851 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 ...
Diamond's user avatar
0 votes
1 answer
393 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="...
indrasen neelam's user avatar
0 votes
1 answer
2k 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 ...
mozzy69's user avatar
  • 38
1 vote
1 answer
722 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=%%...
Ben's user avatar
  • 902
1 vote
2 answers
5k 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. ...
callum202's user avatar
0 votes
0 answers
151 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 ...
Franky's user avatar
  • 1
0 votes
1 answer
1k 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{ ...
Samuel143's user avatar
1 vote
1 answer
1k 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 ...
Jill Olivier's user avatar
0 votes
2 answers
337 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 ...
Spatula's user avatar
  • 21
0 votes
1 answer
445 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 ...
jojopogi's user avatar
  • 502
0 votes
1 answer
768 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 ...
Jaydeep Godara's user avatar
1 vote
2 answers
726 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,"&...
DU Admin DP's user avatar
0 votes
1 answer
5k 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 ...
Jan Tonnet's user avatar
0 votes
1 answer
1k 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 ...
Kiran G's user avatar
  • 19
0 votes
1 answer
891 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() { ...
Badar's user avatar
  • 45
0 votes
1 answer
96 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 ...
skycafe's user avatar
  • 397
2 votes
1 answer
2k 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: /...
Steven Hodge's user avatar
0 votes
1 answer
101 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 (...
Farkous's user avatar
  • 27
2 votes
1 answer
3k 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, ...
Irene's user avatar
  • 1,839
1 vote
0 answers
2k 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=',@...
RobSource's user avatar
0 votes
1 answer
670 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 ...
Nikki's user avatar
  • 1
1 vote
1 answer
708 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 ...
Thomas's user avatar
  • 2,298
0 votes
1 answer
2k 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 ...
lambad's user avatar
  • 385
2 votes
1 answer
68 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 ...
Brian Kessler's user avatar
1 vote
0 answers
80 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 ...
DarkSkull's user avatar
  • 1,729
1 vote
1 answer
4k 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:...
Matthew Souther's user avatar
2 votes
1 answer
2k 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 ...
Rochelle C's user avatar
0 votes
1 answer
267 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(...
Sander de Jong's user avatar
0 votes
1 answer
167 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 ...
wink's user avatar
  • 17

1
2 3 4 5