Chủ Nhật, 18 tháng 10, 2009

Update owner in Plugin

Here's a code snippet that will help you to update the owner of a record in a plug-in. This code should run in a POST plug-in:SecurityPrincipal assignee = new SecurityPrincipal();assignee.Type = SecurityPrincipalType.User;// PrincipalId is some known Guid belonging to the user or team that will own this record.assignee.PrincipalId = new Guid("476E234C-5E15-DE11-80BA-000C297AF856");// Create the

Không có nhận xét nào:

Đăng nhận xét