You need to sign in to do that
Don't have an account?
MCunningham
DML not permitted UserAccountTeamMember object
HELP !!!
I have written a trigger to clone Account team members from a Parent account (into a subordinate account) but cannot insert the team member privledges as I am getting the error "DML not permitted for UserAccountTeamMember object" !!!
What is the reason or approach I should use to do this?
All Answers
Please note UserAccountTeamMember and AccountTeamMember are two different entities.
this last object does not seem to permit DML access (persumably to stop hotshots writing Apex to amend their own privs) -so at the moment my trigger can clone the account team members to the subord. record - but they only get the access granted by their role heirarchy.
I need to copy the Edit privs from the parent AccountTeamMember records too (so that Key Account Teams can have edit access regardless of role heirarchy) - how can this be done?
is DML access to UserAccountTeamMember hardwired ? or perhaps can it be relaxed?
btw - what did u mean by "associating these new shares to the child account by AccountId"
I guess Ive misunderstood the roles of these objects - so I'll try to ask the question without my pre-conceptions;-
please advise into which objects must (and may) I insert the records I need to grant an account team member edit access to Accounts and Opportunities..