Developer Services‎ > ‎MessagingV1‎ > ‎

Admin UserProcessSearch

Allows you to pass in a user and a process ID and return an array of threads for that process.

URI:

api/messagingv1/admin/search/threads/user/{userid}/process/{processid}

HTTP Method

POST

Parameters

  • UserID: UserID in guid format.
  • ProcessID: Process ID in guid format. Usually retrieved from a GetThread request.
  • startdate: The date from which to start searching. Threads created before this date will not be included in your results.
  • enddate: The date at which to stop searching. Threads created after this date will not be included in your results.
  • searchmodifiers: a pipe delimited list of modifiers that you may pass in to modify the return results. Currently, the only available modifier is includedata.
    • includedata: true or false. Default is false. If true, the data from the last transaction will be returned. See Admin GetThreadData for an example of this data.
Example request

URL

https://secure.healthx.com/messagingv1/admin/search/threads/user/b663ed96-eb4a-6cdc-5413-5588740960d7/process/6bd13354-258d-4541-9f58-79210560d7

Body

<AdminUserProcessThreadSearch><startdate>01/01/2001</startdate><enddate>10/01/2012</enddate><searchmodifiers>includedata:true</searchmodifiers></AdminUserProcessThreadSearch>


Example Response:

<ArrayOfThread xmlns="http://schemas.datacontract.org/2004/07/Healthx.Foundation.Messaging" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <Thread>
        <CloseDate i:nil="true"/>
        
<CreationDate>2008-06-27T14:14:43.547</CreationDate>
        <CurStep>1</CurStep>
        <FirstTransactionID>c76774fc-724a-4f7d-8f48-cf036e43586d</FirstTransactionID>
        
<LastTransactionDate>2008-06-27T14:14:43.563</LastTransactionDate>
        <LastTransactionID>c76774fc-724a-4f7d-8f48-cf036e43586d</LastTransactionID>
        <OrgID>e180f61a-afaf-43ce-a495-28c942854cd4</OrgID>
        <Origin>System</Origin>
        <ProcessID>6bf33164-258d-4541-9f58-e7041d3e34a9</ProcessID>
        <ServiceID>6b77340d-c6f9-472c-ae33-377b12dbd3a8</ServiceID>
        <Status>Open</Status>
        <TrackingID>200233</TrackingID>
        <Transactions>
            <Transaction>
                <AddDateTime>2008-06-27T14:14:43.563</AddDateTime>
                <Attachments/>
                    <Data>
                        <Item>
                            <IsEncrypted>false</IsEncrypted>
                            <Label>Enter your new Zip Code Here</Label>
                            <Name>ZIPUPD</Name>
                            <Type>TextBox</Type>
                            <Value>57987</Value>
                            <Visible>true</Visible>
                        </Item>
                    </Data>                
                <DateRead i:nil="true"/>
                <NextTransaction i:nil="true"/>
                <ObjectID>e6c8ac64-381e-48fb-bf52-01c8bacaf104</ObjectID>
                <PrevTransaction i:nil="true"/>
                <ProcessStepID>44eccb18-5f8c-4247-90eb-3a742ba370f4</ProcessStepID>
                <Recipient>e667eb96-ac4a-4adc-8910-2623100960d7</Recipient>
                <RecipientType>User</RecipientType>
                <Sender>e667eb96-ac4a-4adc-8910-2623100960d7</Sender>
                <Status>Approved</Status>
                <TrackingID>200233</TrackingID>
                <TransactionID>c76774fc-724a-4f7d-8f48-cf036e43586d</TransactionID>
            </Transaction>
        </Transactions>
      </Thread>
    </ArrayOfThread>


Comments