You need to sign in to do that
Don't have an account?
R Tye
Message Edited by R Tye on 01-29-2008 02:08 PM
Quick Apex Account team and sharing question!
Hello,
Is there some type of groupID associated with the Accountteammember object? In the different share objects you can create a sharing rule by assigning a UserorGroupId to the share record.
I am attempting to write a trigger to share a case with all the members in a single Account team. Is there a single Accountteammember GroupId that I can create a case sharing record off of? Or do I have to create a new sharing rule for each individual member in the Account team?
If this isn't possible, would a possible solution be to create a new Group (containing all the members from that account)? This way I would have an group wrapper to represent all the userId's related to that account and could create a caseshare rule using that ID.
Thanks!
Message Edited by R Tye on 01-29-2008 02:08 PM
If you want to use that data you would need to query the accountteamMembers for the account and then create a caseShare for each one.
The group approach is probably better but either way there are some issues with managing shares programatically - through apex or even just the API. One if the biggest is that changing owner on case will cause your shares to be deleted.