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
17
votes
2answers
11k 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 ...
16
votes
2answers
29k views

Passing Parameter to batch apex

I need to pass parameter to the batch apex class. This is apex class: global class batchNotesInsert implements Database.Batchable<sObject> { global Database.QueryLocator start(Database....
12
votes
4answers
22k views

How do I pass a parameter from component to a Visualforce page?

Can I pass a email value from a visualforce component to a Visualforce page? I have used components for reusing Company's logo and few images... <apex:component> <apex:image value="{!$...
10
votes
3answers
25k views

How to pass parameters for Lightning component called via quick a action

I have a lightning component which is included inside a visualForce page. When accessing the page directly with a url parameter 'Id' this works fine (component loads inside the vf page and display ...
9
votes
3answers
30k views

What is the correct way to pass Parameters to Lightning JS controller from UI:Button?

I have a button in a table in lightning component. I'm trying to get clicked id of the record. Component markup <table class="slds-table slds-table--bordered slds-table--striped slds-table--...
7
votes
2answers
7k 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, ...
7
votes
3answers
2k views

Relentless error message for URL parameters when referencing Napili Standard Community Page

I've seen versions of this question — but no workable answer. So trying again. Need to know what parameters will work to pull up logged-in user's Account Detail. This should not be complicated! Using ...
6
votes
1answer
6k 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 ...
6
votes
1answer
1k views

What does &inline in a url mean?

I am having a VF page in a pagelayout and there is a outputlink in that Vfpage which calls another VF page. This VF page url is appended with &inline=1. What does this &inline=1 mean. I can ...
5
votes
2answers
386 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 ...
5
votes
4answers
2k views

Why am I unable to pass an Opportunity from a Lightning Component into an @AuraEnabled Apex controller method?

I have a Lightning Component with an Opportunity attribute. The controller calls a helper method, which obtains the Opportunity from the component and attempts to pass it into Apex to be saved. I am ...
4
votes
1answer
3k views

RestContext.request.params.get gives null value for Test Class

RestContext.request.params.get gives null value for Test Class Following is my code and Debug logs : APEX CLASS : String accountRecordId= RestContext.request.params.get('accountRecordId'); ...
4
votes
1answer
5k views

How to get/pass parameter to VF page via JS? How to update field with value from VF page? (updated with BOTH parts)

1st part I have a long-ish question and I will break it into two parts. First, how to pass parameter to VF page via Javascript? I want to click a button and it will take me to VF page and give it ...
4
votes
2answers
1k views

What reasons would the id in URL be null?

My app is getting the object id from the URL query string with the following code: ApexPages.currentPage().getParameters().get('id') However, I have a customer who is reporting that this isn't ...
4
votes
2answers
229 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 ...
4
votes
1answer
818 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
2answers
1k 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 ...
3
votes
2answers
2k views

Loop through ApexPages.CurrentPage().getParameters()

I am trying to add some extra validation to a form by checking if the fields are not null. I would like to loop through ApexPages.CurrentPage().getParameters() That looks something like this: { "...
3
votes
1answer
771 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"}); ...
3
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 ...
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 ...
3
votes
2answers
4k views

escape quotes javascript string coming from page parameters

I got a bit stuck on this little problem. I have a page that get's it's parameters from a layout button(url & formula). I need to use the parameters inside javascript ( angular). My problem is ...
3
votes
3answers
6k views

Aura: init of child component executes before parent components init, alternate approach?

I am new to Salesforce lightning, just started using aura tags. I have to pass parameters to a component (Aura Table) inside parent component (no inheritance), Unfortunately child component's init is ...
3
votes
1answer
598 views

Parameter type as object of custom class

Can I do in Lightning framework something like that: public class MyController public class Person{ public String first_name{get;set;} public String second_name{get;set;} } @...
3
votes
1answer
72 views

problem with sObject as parameter

I get the below error when I try saving CLASS 1 below. The second class that is the problem is also below. I obviously don't understand objects or apex well, so any help would be greatly appreciated. ...
3
votes
1answer
108 views

request parameters contain org address

I have a custom button on account that's content source is URL. (target page uses opportunity standard controller) In the url I specify apex page and a parameter ...?retUrl={!Account.id} Now in the ...
3
votes
1answer
434 views

Url parameters for Data Import Wizard

I'm wondering if it is possible to define URL parameters for the new Data Import wizard. https://xxx.salesforce.com/dataImporter/dataimporter.app Simply put I would like to pre-select a custom ...
3
votes
3answers
963 views

Insert a blank date value in URL hacking?

In URL hacking, how do you insert a blank string value for a date? We have a button that we're implementing that is like the clone button, with a couple of changes. It breaks when I try to clear out ...
3
votes
0answers
1k views

Passing parameters to url scheme salesforce1://

I am connecting to salesforce1 (mobile app) from another mobile native app using the salesforce1:// mobile scheme, as per the overview document. Instead of using standard objects and pages I am ...
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 ...
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 ...
2
votes
3answers
1k views

How to detect in visualforce page if what object it is based on parameter ID

This is the sample link: https://ap1.salesforce.com/a0X9000000AlE7h Is there a ways to know if what object it is in visualforce page?..
2
votes
1answer
39 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 ...
2
votes
2answers
2k views

Pass IDs from apex controller to an apex batch class

Can I pass IDs from apex controller to apex batch class? Can someone please show me some examples? Can't find in google search. I need just a reverse of below link. https://developer.salesforce.com/...
2
votes
3answers
898 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
11k views

how do I pass multiple parameters from jshelper to apex controller in lightning

I would like to pass two strings to my apex controller, but I keep getting an illegal argument error in my debugger. jshelper- var toDate = cmp.get("v.toDate"); var dateStr = toDate.toString(...
2
votes
1answer
2k views

Pass parameter from html select tag to controller

I want to pass parameter that selected from html select tag to my controller (assign it to string "city") what should i do to achieve this ? --Visualforce-- <select> <option value="" ...
2
votes
1answer
821 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 ...
2
votes
1answer
630 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 ...
2
votes
1answer
2k views

Passing in values from javascript to apex action function

What I'm trying to do is on column click, I want it to execute a backend function to store the value that was selected. <apex:pageBlockTable rows="5" rendered="{!(foundResults==true)}" value="{!...
2
votes
1answer
935 views

Help with extension to pass parameters to pre-populate fields on new custom object record vf page

I have a Visualforce page for creating a new record (custom object) from account. I also have a controller extension to pass the URL parameters and other values to pre-populate values on the vf page. ...
2
votes
1answer
1k views

apex param in apex repeat (pass parameter to controller in repeat) not working

I have an apex:repeat and I want to use and apex:param in it. The repeater shows the userName of the person who liked the feed (like.user.Name). And if this userName is same as the person who has ...
2
votes
2answers
4k views

Passing parameter through commandbutton is null value

I'm trying to pass a parameter of an Object to a controller with this code block: <apex:commandButton value="Accept" action="{!Accept}" > <apex:param name="deal" ...
2
votes
2answers
1k views

pass parameter to custom label from javascript

I have a custom label that prints 'Enter at least 2 characters to search.' I would like to make the 2 a parameter that gets passed in so that the user can adjust it at their discretion. So the label ...
2
votes
1answer
419 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 ...
2
votes
1answer
503 views

Live Agent: Pass parameters entered in Pre chat form to a VF Page on Accepting the chat Request

I have a pre chat form and the app is configured to open a VF page when the chat request is accepted. I want to pass parameters entered in the pre chat form to this VF page. Thanks for your help in ...
2
votes
1answer
3k views

Deployment Error: “Invalid parameter value” on one of my custom profiles during Dev > Dev deployment

I am deploying a brand new Custom Object and all associated Custom Fields from one Dev environment to another Dev environment. I'm receiving the "Invalid parameter value" error on one of my custom ...
2
votes
1answer
408 views

In the Service cloud console the home tabs for objects are displayed differently

We have observed some UI changes to the service cloud console especially with the home tabs of the objects with regards to the list views and buttons . The list views and buttons are following the ...
2
votes
1answer
614 views

Parameter passing issue in salesforce1 app

I am passing a parameter from vf page A to page B through URL and getting it on controller of B.It is working when I tried in browser.I created a app for salesforce1 and when I run it ,I am not able ...
2
votes
1answer
402 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 ...