var model = new GroupUpdateableRequestModel()
{
ProntoIDs = new string[]
{
"MyAccountName"
}
};
var results = serviceClient.GetGroupsUpdateable(sa, model);
if (results.IsSuccessful)
{
results.UpdateableGroups[0].OwnerEmail = "updated-email@your-domain.com";
var updateModel = new GroupUpdateRequestModel()
{
Groups = results.UpdateableGroups
};
var updateResults = serviceClient.UpdateGroups(sa, updateModel);
if (updateResults.IsSuccessful)
{
//do work...
}
else
{
//handle error
}
}
else
{
//handle error
}
Dim model = New GroupUpdateableRequestModel() With {
.ProntoIDs = New String() {"MyAccountName"}
}
Dim results = serviceClient.GetGroupsUpdateable(sa, model)
If Not results.IsSuccessful Then
results.UpdateableGroups(0).OwnerEmail = "updated-email@your-domain.com"
Dim updateModel = New GroupUpdateRequestModel() With {
.Groups = results.UpdateableGroups
}
Dim updateResults = serviceClient.UpdateGroups(sa, updateModel)
If Not updateResults.IsSuccessful Then
'do work...
Else
'handle error
End If
Else
'handle error
End If
If Not results.IsSuccessful Then
'do work...
Else
'handle error
End If