You need to sign in to do that
Don't have an account?
grandmaster
Problem creating a test class for AccountTeamMember
Hi
There is a query here: http://boards.developerforce.com/t5/Apex-Code-Development/Is-it-possible-to-update-the-UserId-of-an-AccountTeamMember/m-p/691045/highlight/false#M128661
Can any one help on it?
Thanks
g
Hi,
While writing test classes you should not directly give some id, means don't use Hardcode value of id.
Do the following and refer this u.id in inserting the accountTeamMember userID field, then run the test class again,
user u = [select id,name from user where id=:UserInfo.getUserId() limit 1];
Hope this will help you...!
Please don't forget to give kudos by clicking on the Star icon and mark this as a solution, if this works out.