Click or drag to resize

AccountClientAccountActivation Method

Activates a specified Account using a valid Account Activation Request RSN.
Remarks
  • Current Account Status must be Activation Pending
  • Account Activation Request RSN has an expiry of a configurable value, and must be used within this timeframe to be valid
  • Account Activation Request RSN is generated by the Web Service Method: Request Management Group Account Activation
Syntax
C#
public ResultOfboolean AccountActivation(
	AccountActivation accountActivation1
)

Parameters

accountActivation1
Type: AccountServiceAccountActivation

Return Value

Type: ResultOfboolean
Examples
C#
//This method does not require a Token
using (var svc = new AccountService.AccountClient())
{
  var request = new AccountService.AccountActivation();
  request.RequestRSN = new Guid("c6d880e3-978b-4b82-b29e-4462acbb0aa9");; //Required
  request.EmailTemplate = "Email template ID"; //Optional - Will send a confirmation email, if undefined no confirmation email is sent.

  AccountService.ResultOfboolean result = svc.AccountActivation(request);

  if (result.Value)
  {
    //Request succeded
  }
  else
  {
    //Request failed (no FaultCode or FaultDescription available)
  }
}
See Also