Objective
Create a fulfillment workflow that adds accounts to a group.
Below is not the recommended way.
E.TList<C.GroupAccount> targetgroupAccount = new E.TList<GroupAccount>(); foreach (var bri in CurrentWorkflow.ValidateBRIs.ClaimedBusinessRequestItems) { var ac = C.Account.GetByAccountGUID(bri.RequestDataAssigneeID.Value); var gr = C.Group.GetByGroupGUID(bri.RequestDataTargetResourceID.Value); var ga = new C.GroupAccount() { AccountID = ac.AccountID, GroupID = gr.GroupID }; targetgroupAccount.Add(ga); }