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
Rajeshwar PatelRajeshwar Patel 

How To write SOQl Query

There will be a list of all Accounts where the running user is listed as the Manager role . How to write SOQL query for this
Amit Chaudhary 8Amit Chaudhary 8
Do you have any field on Account object where you define the role ?
Rajeshwar PatelRajeshwar Patel
Yes , i  han a custom field name as partner_detail__c wher i defile a role . And a look up relation between both Accoutn and Partner_detail__c object 
Amit Chaudhary 8Amit Chaudhary 8
Please share the screen shot of partner detail object
Suraj Tripathi 47Suraj Tripathi 47

I am Writing Query of the SOQL Please Follow 

[Select id ,name ....(fields) from Object_Name where ( all conditions)

Please mark it as best answer if it helps you to fix the issue.

Thank you!

Suraj Tripathi