function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Carlos Sabado CortesCarlos Sabado Cortes 

How read a complete object in js?

Hello, i am trying to read all data of object, like this:
var copyOpp = {!Opportunity};
Obviously it doesnt work, and i started with salesforce 2 weeks ago. My question is: 
Exists  something similar?
Best Answer chosen by Carlos Sabado Cortes
Hi Carlos,
I am not sure what exactly your requirement is.
But i am just highlighting a way of getting recordids

var records = {!GETRECORDIDS($ObjectType.Opportunity)}; //grabs the Lead records that the user is requesting for.
Based on your requirement, i will be glad to help you further.

Let me know if you require any further help around this.