-
Problem in response.getReturnValue() result when storing in two attributes in salesforce
When I stored response.getReturnValue() in two attributes in lightning if any change applied on one attribute other attribute data also changing
component.set("v.pricebookProducts", response.getReturnValue()); //getting pricebook products
component.set("v.pricebookProductsCopy", response.getReturnValue());if i done any modification on the first attribute then the second attribute also changing.pls help me how to overcome this problem
Log In to reply.
Popular Salesforce Blogs
Custom Unsubscribe Cloud Page in Salesforce Marketing Cloud
While receiving emails, you must have checked the Unsubscribe link in the emails that redirect you to a page where you opt-out from receiving emails…
Integration Using Named Credentials | Salesforce Developer Guide
The Following are the Benefits of Using Named Credentials: A Named credential specifies the end URL of the callout and its verification parameters required in…
Popular Salesforce Videos
7 Lightning Flow Features in Salesforce Winter '20 Release
Lightning Flow Builder is an automation tool within salesforce.com CRM. It's declarative, clicks not code, a tool that can perform both fully automated and custom…
Classes and Objects in Salesforce | Tutorial Video
The concept of OOPs is really important for any developer who is working with Salesforce or JavaScript, Java, or any other programming language. I have…
Driving Gamified Interactions on Salesforce Communities With ScoreNotch | Use-Cases
A Salesforce-native, Lightning-ready solution, ScoreNotch enables you to dynamically gamify Salesforce communities. Watch this video to learn more about its use-cases. For more, please visit…