Get a list of sent emails for a user - GetSentMailingsForUser

Extracts a listing of Acoustic Campaign emails that are sent for the logged on user for a specified date range.

Elements (Required)

DATE_START - The starting date in the format "mm/dd/yyyy hh:mm:ss"

DATE_END - The ending date in the format "mm/dd/yyyy hh:mm:ss"

Elements (Optional)

OPTIONALUSER - If the calling user is an Org Admin, all users' emails are returned. Use the OPTIONALUSER element and an Org Admin can specify a particular username to retrieve only emails sent by that user.

PRIVATE - Retrieves private emails. If the API does not receive a private or shared elements, Acoustic Campaign returns both private and shared emails.

SHARED - Retrieves shared emails.

SCHEDULED - Retrieves scheduled emails. If the API does not receive an email type, Acoustic Campaign returns emails of all types. Acoustic Campaign uses the various email type elements to limit the list to only the specified types.

SENT - Retrieves sent emails.

SENDING - Retrieves emails that are sending. The SCHEDULED element includes emails in SENDING status.

OPTIN_CONFIRMATION - Retrieves Opt-In autoresponder emails.

PROFILE_CONFIRMATION - Retrieves Edit Profile autoresponder emails.

AUTOMATED - Retrieves Custom autoresponder emails.

CAMPAIGN_ACTIVE - Retrieves active Automated Messages (including Programs Messages).

CAMPAIGN_COMPLETED - Retrieves completed Groups of Automated Messages.

CAMPAIGN_CANCELLED - Retrieves canceled Groups of Automated Messages.

CAMPAIGN_SCRAPE_TEMPLATE - Retrieves emails that use content retrieval.

INCLUDE_TAGS - Returns all tags associated with the sent email.

EXCLUDE_ZERO_SENT - Excludes emails with no contacts.

MAILING_COUNT_ONLY - Returns only the count of sent emails for a specific date range.

EXCLUDE_TEST_MAILINGS - Excludes test emails from your results. If you do not provide this element, Acoustic Campaign includes all test emails.

<Envelope>
  <Body>
    <GetSentMailingsForUser>
      <PRIVATE/>
      <SENT/>
      <DATE_START>07/25/201100:00:00</DATE_START>
      <DATE_END>09/30/201123:59:59</DATE_END>
      <OPTIONALUSER>[email protected]</OPTIONALUSER>
    </GetSentMailingsForUser>
  </Body>
</Envelope>
<Envelope>
  <Body>
    <RESULT>
      <SUCCESS>TRUE</SUCCESS>
      <Mailing>
        <MailingId>5758</MailingId>
        <ReportId>109118</ReportId>
        <ScheduledTS>201-06-14 10:54:06.0</ScheduledTS>
        <MailingName>
          <![CDATA[This is the mailingname]]>
        </MailingName>
        <ListName>
          <![CDATA[This is the databasename]]>
        </ListName>
        <ListId>4615</ListId>
        <UserName> John Doe </UserName>
        <SentTS/>
        <NumSent>0</NumSent>
        <Subject>
          <![CDATA[SummerSale]]>
        </Subject>
        <Visibility>Private</Visibility>
      </Mailing>
      <Mailing>
        <MailingId>5758</MailingId>
        <ReportId>109118</ReportId>
        <ScheduledTS>2011-06-14 10:54:06.0</ScheduledTS>
        <MailingName>
          <![CDATA[My Mailing 2]]>
        </MailingName>
        <ListName>
          <![CDATA[This is the databasename 2]]>
        </ListName>
        <ListId>4616</ListId>
        <UserName>John Doe</UserName>
        <SentTS/>
        <NumSent>0</NumSent>
        <Subject>
          <![CDATA[SummerSale]]>
        </Subject>
        <Visibility>Private</Visibility>
      </Mailing>
    </RESULT>
  </Body>
</Envelope>
<Envelope>
  <Body>
    <RESULT>
      <SUCCESS>TRUE</SUCCESS>
      <Mailing>
        <SentMailingsCount>5758</SentMailingsCount>
      </Mailing>
    </RESULT>
  </Body>
</Envelope>

Elements (Results)

SUCCESS - True if successful, false if not.

Mailing - XML nodes that define the instances of each email.

The following elements are all children of Mailing.

MailingId - Returns the email ID

ParentTemplateId - Returns the parent email ID for the email.

ReportId - Returns the report ID for an instance of an automated email.

ScheduledTS - Returns the scheduled date and time in the format: "mm/dd/yy hh:mm AMPM"

MailingName - Returns the email name

ListName - Returns the database name

ListId - Returns the ID of the database, query ID, or contact list that the email was sent to.

ParentListId - Returns the ID of the parent database when the email sent to a Query or Contact List. If the email was not sent to a query or contact list, this element is not included.

UserName - Returns the email owner's user name.

SentTS - Returns the date and time Acoustic Campaign sent sent the email.

NumSent - Returns the number of contacts to whom Acoustic Campaign sent a email.

SentMailingsCount - Returns the number of sent email.

Subject - Returns the email subject.

Visibility - Returns visibility information about the email: values are Private or Shared.

Tags - If INCLUDE_TAGS is specified in the request, return an tags associated with the sent email.
Tag - A child of the Tags element that contains the Tags associated the sent email.