You need to sign in to do that
Don't have an account?
Tasia Demuth 4
Add Products in Lightning
Hello,
I am having some trouble getting the Lightning stylesheets to stick for the opportunity product Add Product action. I have a visualforce page and custom controller that I use to create an opportunity. Once the opportunity is created, one is redirected to add products to the opportunity. Right now, the redirect works, but sends the user into Classic to add the products and then is redirected back to Lightning.
Is there a way to keep everything in Lightning? Below is the code for the visualforce page.
Thanks in advance for your help!
Tasia
<apex:page lightningStylesheets="true" controller="OppCreateController"> <apex:slds > <!-- >> KO << flow:interview name="Testflow3" interview="{!OppCreate}" finishLocation="{!URLFOR($Action.OpportunityLineItem.AddProducts,OppId)}" / --> <flow:interview name="CreateOpportunityFlow" interview="{!OppCreate}" finishLocation="{!BackToOpp}"> <apex:param name="AccountId" value="{!$CurrentPage.parameters.Id}"/> </flow:interview> </apex:slds> </apex:page>
I am having some trouble getting the Lightning stylesheets to stick for the opportunity product Add Product action. I have a visualforce page and custom controller that I use to create an opportunity. Once the opportunity is created, one is redirected to add products to the opportunity. Right now, the redirect works, but sends the user into Classic to add the products and then is redirected back to Lightning.
Is there a way to keep everything in Lightning? Below is the code for the visualforce page.
Thanks in advance for your help!
Tasia
<apex:page lightningStylesheets="true" controller="OppCreateController"> <apex:slds > <!-- >> KO << flow:interview name="Testflow3" interview="{!OppCreate}" finishLocation="{!URLFOR($Action.OpportunityLineItem.AddProducts,OppId)}" / --> <flow:interview name="CreateOpportunityFlow" interview="{!OppCreate}" finishLocation="{!BackToOpp}"> <apex:param name="AccountId" value="{!$CurrentPage.parameters.Id}"/> </flow:interview> </apex:slds> </apex:page>
The new Winter 18 Release now presents users with the "Add Products" screen after they click "Save". To enable this feature be sure you do the following: from Setup, enter Opportunity Settings in the Quick Find box, then select Opportunity Settings. Enable Prompt users to add products to opportunities.
https://releasenotes.docs.salesforce.com/en-us/winter18/release-notes/rn_sales_features_core_oppty_prod_prompt_sfx.htm
Lightning - Save and Add Products on Opportunity Button
http://https://success.salesforce.com/ideaView?id=0873A000000CSazQAG
Did you have enabled this feature at first?
Alain
Thanks for the response Alain! I did have this feature selected.
I believe that the reason the add products is not prompting is because I have a flow that creates the opportunity and then a redirect to the opportunity record page. Therefore, I never press 'Save' and the prompt is never released. I am wondering if there is anyway to redirect to the prompt?
Let me know! And thank you again for your help!
Tasia
Have you found any workaround? I have the same issue.