I want to call an object action to create/update a record from visualforce Page that is loaded in Lightning Experience within a Lightning I-frame.  I tried the following but it gives error, what am I missing?   &lt;apex:commandButton value="Create Account" action="{!URLFOR($Action.Account.CreateAccount)}"/&gt;
123098
I have Visualforce Page which redirects to standard accounts edit page with prepoulated value for record Type. The record type is getting populated using URL hack. But since URL hacks dont work in lightning experience this functionality is not working and the record type is not populated.  Is there any other workaround to redirect to a standard page with pre-poulated values in Lightning?
105844
In a lightning component I display a list of articles (Article__c custom object) so I ca see, for example, the name of the article, the price, and a button that I'd like redirect to another component which display the details of the article selected.   For now I'm just trying to get the id of the article, in a basic alert in javascript, but I doesn't work : it says the id is null.   Here is a part of the component :  &lt;aura:handler name="init" value="{!this}" action="{!c.doInit}" /&gt; &lt;aura:attribute name="wrappers" type="ListeArticlesWrapper" /&gt; &lt;aura:attribute name="articles" type="Article__c" /&gt;  &lt;aura:attribute name="Detail" type="String"/&gt; &lt;aura:registerEvent name="navigate" type="c:NavigateToDetail"/&gt;  &lt;div class="page"&gt;     &lt;h1&gt;Liste des articles&lt;/h1&gt;     &lt;div class="slds"&gt;         &lt;table class="slds-table slds-table--bordered slds-table--cell-buffer"&gt;             &lt;thead&gt;                 &lt;tr class="slds-text-heading--label"&gt;                     &lt;th scope="col" class="head"&gt;&lt;/th&gt;                     &lt;th scope="col" class="head"&gt;Nom&lt;/th&gt;                     &lt;th scope="col" class="head"&gt;Type&lt;/th&gt;                     &lt;th scope="col" class="head"&gt;Prix&lt;/th&gt;                     &lt;th scope="col" class="head"&gt;&lt;/th&gt;                 &lt;/tr&gt;             &lt;/thead&gt;             &lt;tbody&gt;                 &lt;aura:iteration items="{!v.wrappers}" var="wrap"&gt;                     &lt;tr&gt;                         &lt;td class="cell"&gt;                             &lt;ui:inputCheckbox value="{!wrap.selected}" /&gt;                         &lt;/td&gt;                         &lt;td class="cell"&gt;                            &lt;ui:outputText value="{!wrap.art.Name}" /&gt;                         &lt;/td&gt;                         &lt;td class="cell"&gt;                             &lt;ui:outputText value="{!wrap.art.Type__c}" /&gt;                         &lt;/td&gt;                         &lt;td class="cell"&gt;                             &lt;ui:outputText value="{!wrap.art.Prix__c}" /&gt;                         &lt;/td&gt;                         &lt;td class="cell"&gt;                             &lt;button class="slds-button slds-button--neutral slds-not-selected"                                      onclick="{!c.getDetail}" data="{!wrap.art.Id}"&gt;Details&lt;/button&gt;                         &lt;/td&gt;                     &lt;/tr&gt;                 &lt;/aura:iteration&gt;             &lt;/tbody&gt;         &lt;/table&gt;   The associated controller js (with the function getDetail)  ({ doInit : function(component, event, helper) {     helper.init(component, event); },  getArticles : function(component, event, helper) {     helper.getArticles(component, event); },  getDetail : function(component, event, helper){     var id = event.target.getAttribute("data-data") || event.target.parentNode.getAttribute("data-data")     alert('detail article : id = ' + id); //it gives me null } })   Thanks !  EDIT  And the wrapper class in case you wonder what is the "art" :  public with sharing class ListeArticlesWrapper { //wrapper pour récupérer les articles selectionnés @AuraEnabled public Article__c art {get; set;}  @AuraEnabled public Boolean selected {get; set;} }
48477
I am creating a new custom button or link, and when i try to use a Visualforce page my content dropdown list is empty. How do i get a VF page to trigger on a custom button or link.
123521
I have a VF page with lightningstylesheets = &quot;true&quot;. (This needs to stay this way-- when I take that away the whole page doesn't look right.) I need to save this VF page as a PDF to my Lead record, from an after update trigger. I am seeing that I cannot use renderas=&quot;pdf&quot; together with lightningstylesheets=&quot;true&quot;. I am also seeing that when I try to save the page as is as a pdf, it does not work-- the logs say  Internal Salesforce.com Error.  Does anyone have experience with a similar issue? How can I make this work? Here is the code I'm trying to get the body of the page as pdf:  PageReference pref = Page.SEEK_MVP_PDF_Display;         pref.getParameters().put('id',leadId);         Blob b; if(Test.isRunningTest()) {   b = blob.valueOf('Unit.Test'); } else {    b = pref.getContentaspdf();    system.debug('B: ' + b); } ContentVersion cv = new ContentVersion();         cv.versionData = b;         cv.title = 'SEEK Medicare Eligibility Check';         cv.PathOnClient = 'SEEK_Eligibility_Check.pdf';         insert cv;  ContentVersion Content = [SELECT id, ContentDocumentId FROM ContentVersion where Id = :cv.Id];         ContentDocumentLink contentlink=new ContentDocumentLink();         contentlink.LinkedEntityId= leadId;         contentlink.ShareType= 'V';         contentlink.ContentDocumentId= Content.ContentDocumentId;         insert contentlink;
7031
I have a lightning component on the opportunity layout. I want it to refresh on stage change. Currently, it works when you change the stage using the edit button using the following code.  &lt;aura:dependency resource="markup://force:recordSaveSuccess" type="EVENT" /&gt; &lt;aura:handler event="force:refreshView" action="{!c.doInit}" /&gt;     When changing stage using the Sales Path component (pic below for reference), this event does not seem to be fired. Has anyone been able to subscribe to this component's events? Am I missing something?
50016
I have added an mp3 file as a static resource, can someone please help me to call that resource in the lightning component so when I hit the button it will play that static resource  as per the Salesforce documentation I have tried below but instead of playing the sound it is displaying the message.
120135
I've two components:  &lt;c:Lightning_component_Aura&gt;   &lt;c:lwcLightningWebComponent aura:id="myLwcComponent" /&gt; &lt;/c:Lightning_component_Aura&gt;   I've declared a function inside LWC using @api. Now the documentation says, this method can be called from Parent component but the way they provided is for if parent component is also LWC component.  I would like to call this child LWC component from a parent Aura component. Like we do by provideding a aura:id to an Aura component and find that instance and call the aura method.  Aura Example:  component.find('childComponent').method1();   I tried supplying LWC an aura:id and call the @api method like this but it did not work.  Any suggestions on how to do that?
116377
I'm trying to populate the Contact lookup when a User creates a new related list object from the Contact page.  I am storing the Contact parameter in a Custom Setting so it can be changed when deploying to Production.  For some reason, whenever I try to bind this custom setting to the URL I get a leading '#' and none of the bindings work correctly.  This is despite using the URLENCODE function in the Visualforce  So when I put this (contactParameterId is != null)  &lt;apex:outputLink value="/{!relList.keyPrefixObject}/e?{!IF(relList.contactParameterId != null, 'CF{!URLENCODE(relList.contactParameterId)}={!URLENCODE(contact.Id)}&amp;', '')}retURL=/{!contact.Id}&amp;saveURL=/{!contact.Id}"&gt;&lt;/apex:outputLink&gt;   I get the URL      {URLENCODE(relList.contactParameterId)}={!URLENCODE(contact.Id)}&amp;retURL=/003U000000PL9LNIA1&amp;saveURL=/003U000000PL9LNIA1   What am I doing wrong?
71582
I have a URL button 'New Opportunity' which creates the new opportunity and takes the user to the edit page passing through some values through the button which is on Opp Related List in a custom object.  The problem is, now I need to adapt the majority of my custom buttons to Salesforce1 and this app doesn't accept custom buttons so I need to create a Publisher Action in order to replicate the same action.  I've created a Publisher Action redirecting to a Visualforce. Inside this visualforce I've tried passing the values through the sforce.one.navigateToURL(); function using the standard controller values  to redirect, but this doesn't seem to work. Do you know of a workaround for this?  URL Button Code: /006/e?&amp;retURL=%2Fa0BS0000002pJhs&amp;opp4={!Estudio_economico__c.Empresa__c}&amp;opp3=No informar&amp;RecordType=01220000000Iw8t&amp;CF00N20000002GXnJ_lkid={!Estudio_economico__c.Id}&amp;CF00N20000002GXnJ={!Estudio_economico__c.Name}
24966
Where can I get the URL for adding a VF page through iframe to a custom lightning component?  1 I create a VF page.  2 I know that I can display it in lightning using the following approach   &lt;iframe src="{!'myURL'}" width="100%" height="300px;" frameBorder="0"/&gt;  Where can I get myURL?
57985
As the user goes into an account, there is a custom button that they can click that will redirect them to my Visualforce page.  How can I capture that account id  in my controller?  Thanks  public myControllerCBR(){     breachRecord = new List&lt;wrapperClass&gt;();      AccountTeamMember uId = [SELECT UserId FROM AccountTeamMember WHERE AccountId =:ApexPages.CurrentPage().GetParameters().Get('id') and TeamMemberRole = 'Sales Engineer' limit 1];      List&lt;User&gt; uName = [SELECT Name, Manager__c, MANAGERID, Email, MOBILEPHONE FROM User WHERE Id =:uId.UserId limit 1];       for(User rept : uName){         breachRecord.add(new wrapperClass(rept));     }  }   See button setup:
38242
I have a visualforce page which on load should call 4 methods one after the other. For that purpose, I tried using apex:actionFunction  &lt;apex:page sidebar="false" showHeader="false" controller="PullFromTaleo"&gt;   &lt;apex:form &gt;     &lt;apex:actionFunction name="Method1" action="{!Method1}" immediate="false"/&gt;     &lt;apex:actionFunction name="Method2" action="{!Method2}" immediate="false" /&gt;     &lt;apex:actionFunction name="Method3" action="{!Method3}" immediate="false"/&gt;     &lt;apex:actionFunction name="Method2.1" action="{!Mehtod2}" immediate="true"/&gt;     &lt;apex:actionFunction name="Method4" action="{!Mehtod4}" immediate="true"/&gt;  &lt;/apex:form&gt; &lt;/apex:page&gt;   However none of the above functions are executed. Not sure how to call multiple functions in sequence from a visualforce page.
119418
I have a standard account salesforce page, where i have a custom visualforce page included as a section. Now i want to reload a whole standard page if the button at the custom vf-page  was clicked. Is it possible?
21774
Is there a way we can get the value from force:RecordData on init ? I am getting the onclick event of a button.  &lt;aura:handler name="init" value="{!this}" action="{!c.doInit}"/&gt;     &lt;aura:attribute name="recordId" type="String"/&gt;      &lt;aura:attribute name="showButton" type="Boolean" default="false"/&gt;     &lt;aura:attribute name="Opportunity" type="Object"/&gt;        &lt;aura:attribute name="parentOpp" type="Object"/&gt;     &lt;aura:attribute name="oppLoadError" type="String"/&gt;     &lt;force:recordData aura:id="oppRecordLoader"                       recordId="{!v.recordId}"                       fields="Id,                               Name,                               AccountId,                               Cohort_Sem__r.End_date__c,                               LeadSource,                               Staff_Referral_Detail__c,                               lead_source_detail__c"                       targetRecord="{!v.Opportunity}"                       targetFields="{!v.parentOpp}"                       targetError="{!v.oppLoadError}"                       /&gt;   JS:  doInit: function(component, event, helper) {                     var opp = component.get("v.parentOpp");                   console.log('Name Value: '+ opp.Name);     }   Error:     Action failed: c:createIWSRecord$controller$doInit [Cannot read   property 'Name' of null] quickActionHandlerHelper.js failed to create   component - forceChatter:lightningComponent
54687
The  documentation provides this example:  &lt;aura:component&gt;     &lt;lightning:recordEditForm recordId="003XXXXXXXXXXXXXXX" objectApiName="Contact"&gt;         &lt;lightning:messages /&gt;         &lt;lightning:inputField fieldName="FirstName" /&gt;         &lt;lightning:inputField fieldName="LastName" /&gt;         &lt;lightning:inputField fieldName="Email" /&gt;         &lt;lightning:button class="slds-m-top_small" variant="brand" type="submit" name="update" label="Update" /&gt;     &lt;/lightning:recordEditForm&gt; &lt;/aura:component&gt;   where a a click on the nested submit button causes the data to be saved.  Anyone know of a reliable/documented way to get the lightning:recordEditForm to save based on a click of a button located elsewhere in the page?
105378
Use Case:  What i want is a list of records, and allow this user to choose 2 of those records, then click a button to go to a new VF page, if the user selects more than 2, i want him to get a notification of some kind saying you need to select 2 records, I do not want the page refeshed though.  Strategy:  I'm creating a wrapper class for the records like this:  and i have that part going by creating a custonm controller... I need the notification part working.   Problem:  I don't know how to call methods from the customController in javascript Also, i do not want to refresh the entire page. I just want them to go back to where they were. I was thinking a pop-up notification but I'm flexible..
15183
I have action override on New Case button which runs our custom component.  As you know, we can create a new Case from different places in org, e.g. from related lists. When creating a Case from related list on Account using standard action in Lightning we have prepopulated AccountId to the lookup field. Is it possible to do the same with custom component? I can't catch the AccountId using force:hasRecordId, because action override redirects me to the new page with custom component where I don't have a context of Account. URL also doesn't contain its Id. What can I do to grab Id of context object and populate it to my component?