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
EmguEmgu 

Get all opportunities - specific user

Hi! 

Im 100% new to working with SalesForce. But it seems like a really interesting thing to be working with. 
Right now im going to implement SalesForce with my node app. The thing i want to show in my node application is a list of the current logged in users business-opportunities. I have been searching the forum with nerly zero succes and now im asking you guys!(who seem to be very helpful and friendly). In my head i just make a http-get call in my application and then write the opportunites out in a list. But i cant make it work.. Im up for any ideas so feel free to send me any kind of message or post somthing here. I think im just in need of some guidance.
Cheers!
Best Answer chosen by Emgu
Nayana KNayana K
In Salesforce SOQL query, we do a query like this [SELECT Id, Name FROM Opportunity WHERE OwnerId =: UserInfo.getId()] to retrieve opportunities owned(usually the one who creates a record) by current user.

I have no idea on node app. But searched google and found this:
User-added image

Here, I can see OwnerId : conn.userinfo.id filter for the where clause