The service enables you to a new recipients group.
The returned value is the new group id.
Parameters:
-
int folderId
The id of the folder in which the group will be created.
The folder must be one of the folder you have already created on our system.
-
String groupName
The name for the new group.
The value must be a valid group name, some special characters may be declined by our system.
The name must be unique, you can not have more than 1 groups with the same name.
Java Code:
//get a reference to the service InwiseWebServices ws = new InwiseWebServices();
InwiseWebServicesSoap inwiseWebServicesSoap = ws.getInwiseWebServicesSoap();
//fill the security header
HeaderHandler hh = new HeaderHandler("myusername", "myPassword");
hh.setHeader(inwiseWebServicesSoap);
//the id of the folder in which the group will be created
int folderId = 34;
//the display name for the new group
String groupName="recipients group 1";
//call the operation
int newGroupID = inwiseWebServicesSoap.groupsCreateGroup(folderId, groupName);
C# Code:
//get a reference to the service
InwiseWebServices.InwiseWebServices ws = new InwiseWebServices.InwiseWebServices();
//fill the security header
InwiseWebServices.SecHeader header = new InwiseWebServices.SecHeader();
header.username = "username";
header.pass = "myPassword";
ws.SecHeaderValue = header;//set credentials
//the id of the folder in which the group will be created
int folderId = 34;
//the display name for the new group
string groupName="recipients group 1";
//call the operation
int newGroupID = ws.Groups_CreateGroup(folderId, groupName);
VB Code:
'get a reference to the service
Dim ws As InwiseWebServices.InwiseWebServices = New InwiseWebServices.InwiseWebServices()
'fill the security header
Dim header As InwiseWebServices.SecHeader = New InwiseWebServices.SecHeader()
header.username = "username"
header.pass = "myPassword"
ws.SecHeaderValue = header 'set credentials
'the id of the folder in which the group will be created
Dim folderId As Integer = 34
'the display name for the new group
Dim groupName As String = "recipients group 1"
'call the operation
Dim NewGroupID As Integer = ws.Groups_CreateGroup(folderId, groupName)