Skip to main content

Last updated: 2024-06-07


GetUnassignedAccounts Method


In this topic:


Overview


The GetUnassignedAccounts method returns the object IDs of all investment accounts in an office that have a particular account number and are not assigned to a contact.


The GetUnassignedAccounts method is invoked using the method operation.


Parameters


Parameter NameTypeRequired?Description
OfficeIDLongYesThe object ID of the SmartOffice office.
AcctNumberStringYesThe investment account number.

Example


The following example request retrieves all investment accounts with account number 222222222 in an office with ID 1111111 that are not assigned to a contact:


XML
<request version='1.0'>
  <header>...</header>
  <method>
    <GetUnassignedAccounts>
      <OfficeID>1111111</OfficeID>
      <AcctNumber>222222222</AcctNumber>
    </GetUnassignedAccounts>
  </method>
</request>

The response returns the object IDs of the investment accounts:


XML
<response version="1.0">
  <header>
    <sessionClosed/>
  </header>
  <method>
    <GetUnassignedAccounts>
      <AcctMaster _type="obj" id="AcctMaster.1111111.23"/>
      <AcctMaster _type="obj" id="AcctMaster.1111111.24"/>
      <AcctMaster _type="obj" id="AcctMaster.1111111.25"/>
    </GetUnassignedAccounts>
  </method>
  <_status>OK</_status>
  <_systime>2022-02-08T18:23:52</_systime>
  <!-- Cost 33 mill seconds. -->
</response>