Get Message By Id operation


The Get Message By Id wrapper finds the properties of a particular message in the queue by providing the MessageId and QueueId in the request.

The following table describes the input parameters for the Get Message By Id wrapper.

 Input parameter description for Get Message By Id wrapper

The following figure shows a sample of an adapter request for Get Message By Id wrapper.

XML sample of an adapter request for the Get Message By Id wrapper


<microsoft-exchange-request>
   <command>
       <command-name>Get-Message</command-name>
       <parameters>
           <parameter>
               <name>QueueId</name>
               <value>{0F5C33F2-B83A-41FA-9BE3-69C6D1314E13}/63328132
   /63328136</value>
           </parameter>
           <parameter>
               <name>QueueName</name>
               <value>CurrentlyUnreachableLink</value>
           </parameter>
           <parameter>
               <name>ProtocolName</name>
               <value>SMTP</value>
           </parameter>
           <parameter>
               <name>MessageId</name>
               <value>&lt;B9222068CB53B342A1D5CA7BB4D4353559D7@s-17125&gt;</value>
           </parameter>
       </parameters>
   </command>
</microsoft-exchange-request>


The following figure illustrates the adapter response for Get Message By Id wrapper.

XML sample of the adapter response for the Get Message By Id wrapper

<microsoft-exchange-response>
<metadata>
 <status>success</status>
</metadata>
 <commands-output>
 <command-output>
<metadata>
 <command>cscript "C:\Program Files\BMC Software\AO\CDP_75FCS\server
  \grids\KGrid\library\adapters\bmc-adapter-microsoft-exchange-v2003
 -actor_7.6.00-SNAPSHOT\scripts\getMessageInQueue.vbs"  
 "CurrentlyUnreachableLink" "SMTP"  "&lt;B9222068CB53B342A1D5CA7BB4D4353559D7@s
 -17125&gt;" 
 "{0F5C33F2-B83A-41FA-9BE3-69C6D1314E13}/63328132/63328136"</command>
   <line-count>22</line-count>
   <execution-milliseconds>4203</execution-milliseconds>
   <exit-code>0</exit-code>
   <status>success</status>
 </metadata>
 <output>
   <line index = "1">Attempting to connect to remote host...</line>
   <line index = "2">Initialising rctrlx server component...</line>
   <line index = "3">Executing remote application: cmd /c cscript
 "%windir%\getMessageInQueue.vbs" "CurrentlyUnreachableLink" "
 SMTP" "&lt;B9222068CB53B342A1D5CA7BB4D4353559D7@s-17125&gt;" 
 "{0F5C33F2-B83A-41FA-9BE3-69C6D1314E13}/63328132/63328136"</line>
   <line index = "4">Remote application process ID: 3492</line>
   <line index = "5">Microsoft (R) Windows Script Host
 Version 5.6</line>
   <line index = "6">Copyright (C) Microsoft Corporation 1996-2001.
 All rights reserved.</line>
   <line index = "7">MessageId: &lt;B9222068CB53B342A1D5CA7BB4D4353559D7@s
-17125&gt;</line>
   <line index = "8">Sender: Administrator@BMCDEV1.com</line>
   <line index = "9">Recipients: Envelope Recipients:</line>
   <line index = "10">SMTP:djkbckj@gmail.com;</line>
   <line index = "11">Subject: nsljfvnsln</line>
   <line index = "12">Size: 477</line>
   <line index = "13">Time Submitted: 20090713062055.000890+***</line>
   <line index = "14">Time Received by Server: 20090713062055.000890+***</line>
   <line index = "15">Time Expires: 20090715062055.000890+***</line>
   <line index = "16">High priority flag: False</line>
   <line index = "17">Low priority flag: False</line>
   <line index = "18">NormalPriority flag: True</line>
   <line index = "19">Recipients Count: 0</line>
   <line index = "20">State Frozen: False</line>
   <line index = "21">State Retry: False</line>
   <line index = "22">Remote application exited with code: 0</line>
 </output>
 </command-output>
 </commands-output>
</microsoft-exchange-response>

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

TrueSight Orchestration Content 20.19.02