Skip to main content

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
23 votes
2 answers

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....
Jana Shree's user avatar
12 votes
4 answers

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="{!$...
MnZ's user avatar
  • 3,170
29 votes
3 answers

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 ...
Yury Bondarau's user avatar
7 votes
3 answers

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 ...
Cheri's user avatar
  • 163
3 votes
1 answer

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"}); ...
oobarbazanoo's user avatar
11 votes
3 answers

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 ...
Hasantha's user avatar
  • 2,045
10 votes
3 answers

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--...
Pasan Eeriyagama's user avatar
6 votes
2 answers

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 ...
Reshma's user avatar
  • 4,039
6 votes
2 answers

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 ...
Brian Kessler's user avatar
5 votes
1 answer

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 ...
fraglord's user avatar
  • 323
5 votes
4 answers

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 ...
Brian Piggins's user avatar
2 votes
1 answer

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 ...
Akhil's user avatar
  • 178
2 votes
1 answer

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="{!...
user2582622's user avatar
1 vote
1 answer

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
1 vote
1 answer

How to open in lightning experience a custom visualforce page that requires parameters?

Scenario: I have two custom visualforce pages called, reportlist and reportshow. The reportlist does not accept parameters and opens via an app's tab in salesforce classic. The reportlist displays a ...
Bryan's user avatar
  • 427
1 vote
1 answer

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 ...
dmorse's user avatar
  • 75
1 vote
1 answer

How to detect/determine that this parameter ID belongs to this Custom Object

I have linkId = ApexPages.currentPage().getParameters().get('Id');. I want to determine wether what object this ID belongs. Is it Sample1_Object__c ID or Sample2_Object__c ID.. This is a sample debug ...
Lennon Leopoldo's user avatar
0 votes
2 answers

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

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

Passing report parameter in Salesforce1?

We have a google chart on our Engagement__c object, that is written to run a report on click with a passed parameter. This works perfectly in the browser. However, when clicking the link while in ...
HomerJ's user avatar
  • 893
0 votes
1 answer

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: @...
jon_wu's user avatar
  • 777