I need to fetch email of the user which they place under personal information but I seem to be getting back all the contact's emails of the user.
So for the above example, I need [email protected]
. My code and query is as follows:
const conn = new jsforce.Connection({
instanceUrl: ...,
accessToken:...,
refreshToken: ...,
oauth2: {
"clientId": ...,
"clientSecret": ...,
"redirectUri": ...
},
});
const query = "Select Email FROM User";
const result = await conn.query(query);
But I do not get this email, I get all the contacts email in an array which is like 100+ in length.