I had understood all the mechanics of the notification process I looked for something wrong in my environment.
Everything was fine so I started my research around Tasks list security. Here are the scenarios I tested and also my remarks:
1. I left the permissions inheritance unbroken. The list didn’t have any permission for the AssignedTo user. It was clear that trimming mechanism came into play and immediate alerts job doesn’t send any email. So ensure you assign the needed level of permissions to the AssignedTo user of the task item because it is the one that will receive the email notifications.
2. I broke the inheritance and added permissions only to the AssignedTo user. Surprise: that time was working! The task creation email notification was sent.
3. I moved the code that creates the permissions for the user above the one that creates permissions for the group. Surprise again! It was working.
4. I thought it might have something to do with the Update method call so I just commented out the first properties.ListItem.Update() statement in the original code of the event handler. This implementation worked as expected and it was our final solution.
Refer @ http://www.ashwinbhagwat.com/my_blogs.html
Everything was fine so I started my research around Tasks list security. Here are the scenarios I tested and also my remarks:
1. I left the permissions inheritance unbroken. The list didn’t have any permission for the AssignedTo user. It was clear that trimming mechanism came into play and immediate alerts job doesn’t send any email. So ensure you assign the needed level of permissions to the AssignedTo user of the task item because it is the one that will receive the email notifications.
2. I broke the inheritance and added permissions only to the AssignedTo user. Surprise: that time was working! The task creation email notification was sent.
3. I moved the code that creates the permissions for the user above the one that creates permissions for the group. Surprise again! It was working.
4. I thought it might have something to do with the Update method call so I just commented out the first properties.ListItem.Update() statement in the original code of the event handler. This implementation worked as expected and it was our final solution.
Refer @ http://www.ashwinbhagwat.com/my_blogs.html
Comments
Post a Comment