How can I query the user id/id's of the Partner User belonging to the Partner Account? Can you provide me with the approach/sample.
I have a below query that fetches the id of the Partner Account from the Opportunity ( There is a lookup relationship added to the opportunity)
SELECT Id, Name, AccountId, Commisioning_Partner_Account__r.Id, Commisioning_Partner_Account__r.Name FROM Opportunity
The scenario is : if at all there is any Partner User belonging to the Partner Account, the partner user should have access to that opportunity. In a nutshell, I want to open the access of the opportunity to the Partner User of the Partner Account. Is it possible through Apex Sharing trigger?