Technology Blog Posts by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
rohini_potham3
Explorer
0 Kudos
620

 

Add Custom Headers for message logging of unique identifiers in CPI iflows:

Rationale – Most of the times, we might want to search with unique identifiers as the message volume might be high & we do not want to search based on message ID

In that case, we can log the needed value as custom Header/Property & search it on the message monitoring page

IFLOW steps:

  1. Create a header with content modifier to be added as custom Header on the message

rohini_potham3_4-1746777220528.png

  1. Add the groovy script to assign the required header/property as the custom Header

rohini_potham3_5-1746777220531.png

  1. Navigate to Monitor & click on Expand/collapse arrow to see other options for monitoring

rohini_potham3_6-1746777220533.png

  1. In the custom header, search with <customHeader>=<value> to get the specific message

rohini_potham3_7-1746777220537.png

Once the message has been processed, use the corresponding request from the Postman collection to get the message for a particular po_number value. Since the custom header properties are stored as name/value pairs, the request looks like this:

https://{{cpi_designtime_url}}/itspaces/odata/api/v1/MessageProcessingLogCustomHeaderProperties?$filter=Name eq 'OrderNo' and Value eq '12345'&$expand=Log&$format=json

Regards,

Rohini Potham

Labels in this area