Hi,
I want to create a group using script add members to it. I am using this script to create a group but unable to create.
var groupService = dundas.context.getService(“GroupService”);
var view = dundas.context.getService(“ViewService”)
var group = new dundas.account.Group()
group.groupKind = dundas.account.GroupKind.STANDARD
group.id = dundas.Utility.createGuid();
group.name = “Test2”
group.displayName = “Test2”
account.isEnabled = true;
var createGrp =
groupService.createGroup(group);
viewService.showLoadingRestCall(createGrp);
createGrp.done(
function(account)
{
viewshowAlert(‘Group Created’, dundas.view.NotifyType.SUCCESS, “Information”);
}
);
Can anyone tell me what Kind mistake I am committing in this script?