Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
3answers
40 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
34 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
124 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"}); ...
1
vote
2answers
264 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
29 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
76 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
152 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
33 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
43 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 ...
1
vote
1answer
335 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
30 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
71 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 ...
0
votes
0answers
55 views

Pass an instance of a custom class from lightning component to apex

Is it possible to pass an instance of a custom class from lightning component to apex? For example I have the following class: public class DataNode { @AuraEnabled public List<List<...
-2
votes
3answers
629 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
0answers
162 views

Passing apex class as a parameter from lightning component to apex class

I want to pass apex class as a parameter from lightning component to apex class method.When I tried, I am getting error as "Error message: An internal server error has occurred Error ID: 124770038-...
0
votes
2answers
51 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 ...
0
votes
0answers
25 views

Finish Location of a Visualforce-Embedded Flow Not Functioning as Expected

The screen flow in my VF page renders only after a couple of apex:selectList values are chosen: 'Report an Issue' --> 'One or More App Servers' --> Flow I want the flow's finish location to be the ...
2
votes
1answer
604 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
36 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; ...
0
votes
0answers
9 views

Custom Button Content Search Parameter Behavior - &searchTags parameter (ContentDocument sObject)

I have a custom button that is dynamically generating a URL to search Content in Salesforce. Everything works fine with the following except for one caveat: /sfc/#search?&searchWorkspaceIds=%5B%...
-1
votes
2answers
25 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 ...
1
vote
1answer
154 views

How to capture URL parameters

I have used Community builder to build 'tab' and mapped it to VF page checkorder but when I try to load https://domain-url/conveyance/s/checkorder?id=a2O21000000aU52 ,I am unable to capture id ...
4
votes
2answers
120 views

What are the risks or drawbacks of creating Parameterized Interfaces using of the Apex API version 25?

Unfortunately, as of API version 26, SFDC removed parameterized interfaces. However, it is relatively easy to create new interfaces and set the version as 25. So, to take the example from ...
0
votes
0answers
114 views

Formatting parameterized custom label inside subject for Visualforce Email template

I'm trying to use the format() visualforce function to have a parameterized custom label as my Visualforce Email Template subject. This is my current code: <messaging:emailTemplate ...
0
votes
1answer
705 views

How ro pass an List/array from javascript controller to helper

I have the following attribute in my lightning component <aura:attribute name="serverList" type="Opleiding__c[]"/> I can call this in my javascript controller with var serverList = component....
-2
votes
1answer
821 views

Pass value from class to another class [closed]

I have a class which receives a value from a lightning component how do I pass this value to another class. I get the error: incorrect signature Return Class public class PassDoelgroep { @...
0
votes
0answers
11 views

Salesforce android pass parameters inURL

Is there any way to redirect to salesforce android application from browser and pass parameters in URL and handle them in the application?
5
votes
2answers
1k views

Define APEX method with default arguments

I am curious if APEX permits declaration of default arguments (or parameters if you will). When calling the method without specifying the value, method would be executed with the default value, ...
4
votes
1answer
321 views

Field Service - How to get record id inside visual flow?

Iv'e created a flow that is embedded inside fsl app. Inside the flow App Extension I set it to run only on WorkOrder object. I need to use the record id inside my flow but i'm not able to get it. I ...
4
votes
1answer
267 views

Generating dynamic reports in partner community with Custom URL field to pass the parameterrs

We are facing a problem for passing dynamic filter values to reports from partner communities. We have tried all the combinations of pv0 and fv0. It is working fine in a full org but filters are not ...
4
votes
1answer
2k views

Content Document download URL params

I spend hours to find a way to control download behavior of pdf-files (when to download and when to show inline) and did not find anything. What I got so far: the main thing that do all files ...
4
votes
2answers
159 views

PageReference Parameters Overwritten Even With Different Case?

I ran into this issue and believe this is a Salesforce bug, and I am looking for confirmation. Maps are supposed to be key case sensitive but when we use the pageReference.getParameters.put() it does ...
1
vote
0answers
52 views

Encoded characters break the VF Page

I have faced an error when using the character encodes in URL parameters. We are using TUPAS verification in our Salesforce customer community. When the user authorizes with the bank codes he got ...
0
votes
1answer
214 views

Check if page parameter is null in visualforce page

<c:CPPListViewComponent AccountId="{!IF(ISNULL($CurrentPage.parameters.accId), null,$CurrentPage.parameters.accId)}" RecordTypeValue="CPP"/> I am trying to pass the page parameters as ...
0
votes
2answers
120 views

Add parameter on send classification level

Hope you can help me on this question :) On our website we use a lot of Sleeknote forms, and especially our sign-up forms perform exceptional. We'd like to hide these forms from all our our ...
0
votes
0answers
140 views

Salesforce Napili Lightning Community - how to get rid of URL parameters

Is there a way in a Lightning Component to tell it to remove the parameters from the current URL? If I add parameters at some point during navigation, Salesforce keeps those parameters through the ...
5
votes
1answer
4k views

Passing parameters to a Lightning Component inside a Lightning Tab

I created a lightning component that basically needs to receive an Account Id to work with, so when I was developing it, I created a standalone application and simply passed the accountId that I was ...
-2
votes
1answer
1k views

How to get value of parameter on URL on lightning community page? [duplicate]

I have URL in Lightning Community page, I want to get value of parameter from this ULR in Lightning. https://www.testurl.com/page?accountRef=test123 How can I get value of accountRef? I have tried ...
1
vote
1answer
576 views

Passing a parameter to batchable class

I have the following batchable class: global class batchableClassName implements Database.Batchable<sObject>, Database.AllowsCallouts { global Database.QueryLocator start(Database....
0
votes
0answers
275 views

Passing parameters from one vf page to another

I am trying to create 2 VF page . VFpg1 and vfpg2. In vfpg1, there is one inputfield (Account.name) and a button SAVE. When button is clicked, it will redirect to vfpg2 with current account id where ...
1
vote
0answers
118 views

How do I send a parameter to the lead convert page for Opportunity Name field. IN LIGHTNING!

IN LIGHTNING EXPERIENCE: I want to pass the Opportunity Name as a parameter to the Standard Lead Convert Form, so that users can just deal with the Account creation and press save, if they leave the ...
1
vote
2answers
114 views

Passing parameters with different names and treating it as one

I have to pass language code from the URL to VFP/Apex Code, and the language parameter can be in two different name lang language so it can be passed like www.something.com?lang=en_US or ...
1
vote
1answer
555 views

getParameters().get('custompara') Not Getting URL parameter

The below controller is attempting to grab an custom object id from the URL. The logs show that it fails to assign the string var para the id value from the URL. The system.debug for var para returns ...
0
votes
2answers
160 views

Passing Param to Apex Class for Delete from PageBlockTable

I am trying to add a delete function in my Extension class on my visualforce page. The param on the visualforce page from the PageBlockTable row is not being passed when the CommandButton Action is ...
0
votes
1answer
237 views

Using interfaces as parameter arguments

Is it possible to use interfaces as parameters within Apex? As an example: public interface InterfaceExample{ void example(InterfaceExample ex); // Will not compile InterfaceExample example2(...
0
votes
0answers
73 views

How to recover the URL in my lightning component

I have a lightning component and I acced it with the URL https://urlsalesforce/one/one.app?#/n/Component I want to recover the URL (https://urlsalesforce/one/one.app?#/n/Component) in my component (...
0
votes
1answer
505 views

For an SObject parameter of an Apex REST API, how can you pass in nested related objects?

I have an Apex REST endpoint that takes an SObject parameter but I can't figure out how I can pass in nested objects. Is this possible out of the box? Let's say my endpoint's code looked like this: @...
2
votes
1answer
417 views

Passing JavaScript Variable To Controller With RemoteAction

I will most likely just re-write my code to work with this way of passing the value to the controller BUT I was curious why the below method doesn't work. Is there a rule about remote action and ...
1
vote
1answer
730 views

Can I pass an encrypted value as a URL parameter?

I'm looking to pass email address as an encrypted value (DES) to avoid PII in email links for compliance with Google remarketing. I'm able to use the EncryptSymmetric in the email body to create a ...
1
vote
0answers
222 views

VisualForce: Dynamic Page Headers based on Parameters works as expected until adding actions to page

Background: I am working on a VisualForce page to allow our customers to 'Add to Calendar' from an email alert that they receive when we book an Event. The Apex page takes 2 parameters right now, ...