API CreateMailbox I...
 
Notifications
Clear all

API CreateMailbox ID

3 Posts
2 Users
0 Reactions
656 Views
Posts: 39
Topic starter
(@infinitm)
Trusted Member
Joined: 4 years ago

Hey Guys,

I am having a bit of a confused moment...
I've taken a look at the CreateMailbox Command, And it seems as though the command requires the ID for the mailbox even though the ID should be assigned n create, or am I missing something?
In the below code there's a accountID variable, and if I look in the DB, the acocunt ID seems to be the ID that increments, So it makes no sense to provide it... Or am I missing something?
Maybe I'm using the wrong command?

int
int
Undefined or Mailbox or Contact or DistributionList or PublicFolder or Room or Equipment or User or SecurityGroup or DefaultSecurityGroup or SharedMailbox or DeletedUser
string
string
string
string
string
boolean
string
int
int
string
boolean

2 Replies
Posts: 39
Topic starter
(@infinitm)
Trusted Member
Joined: 4 years ago

Ok so in the above question the xml code was removed... Leme try and paste it again :

<CreateMailbox xmlns=" http://smbsaas/solidcp/enterpriseserver"> 
      <itemId><span class="value">int</span></itemId>
      <accountId><span class="value">int</span></accountId>
      <accountType><span class="value">Undefined</span> or <span class="value">Mailbox</span> or <span class="value">Contact</span> or <span class="value">DistributionList</span> or <span class="value">PublicFolder</span> or <span class="value">Room</span> or <span class="value">Equipment</span> or <span class="value">User</span> or <span class="value">SecurityGroup</span> or <span class="value">DefaultSecurityGroup</span> or <span class="value">SharedMailbox</span> or <span class="value">DeletedUser</span></accountType>
      <accountName><span class="value">string</span></accountName>
      <displayName><span class="value">string</span></displayName>
      <name><span class="value">string</span></name>
      <domain><span class="value">string</span></domain>
      <password><span class="value">string</span></password>
      <sendSetupInstructions><span class="value">boolean</span></sendSetupInstructions>
      <setupInstructionMailAddress><span class="value">string</span></setupInstructionMailAddress>
      <mailboxPlanId><span class="value">int</span></mailboxPlanId>
      <archivedPlanId><span class="value">int</span></archivedPlanId>
      <subscriberNumber><span class="value">string</span></subscriberNumber>
      <EnableArchiving><span class="value">boolean</span></EnableArchiving>
    </CreateMailbox>
Reply
Posts: 110
(@berkut)
Estimable Member
Joined: 7 years ago

You can look how it is implemented in SolidCP:

ortal/DesktopModules/SolidCP/ExchangeServer/ExchangeCreateMailbox.ascx.cs#L146

Reply
Share: