Tuesday, April 16, 2019

Web Services - Retrieve all Messages/Emails within a Case (XML Example)

The following code below is a XML example on how to get All the Sent and Received Messages/Emails within a case.
<search> <searchRecord type="MessageSearch"> <caseJoin> <internalId operator="anyOf"> <searchValue internalId="7" /> </internalId> </caseJoin> </searchRecord> </search>

 

The following code below is a Psuedo-code example on how to get Sent and Received Messages attached to a case.

SearchRequest   search

{

MessageSearch   searchRecord

{

SupportCaseSearchBasic   caseJoin

{

SearchMultiSelectField   internalId

{

SearchMultiSelectFieldOperator   operator  =  anyOf ]

RecordRef [0...n]   searchValue

{

[ string   internalId  =  7 ]

}

}

}

}

}

No comments:

Post a Comment