cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Original Iflow and log id and camelId when triggering mail from another iflow

0 Kudos

Hi Team,

For exception handling, I have created another common iflow which is being called using ProcessDirect adapter.

Original Iflow exception subprocess:

Iflow to trigger Email:

When I trigger mail, How to get below properties of the Original Iflow in Subject and Body ?

1.SAP_MessageProcessingLogID

2.camelId

Thanks,

Varun

View Entire Topic
Sriprasadsbhat
Active Contributor
0 Kudos

Hello ,

Add content modifier and set below payload so that body will contain parent flow details. Even you can enhance the details to have custom fields required as per your requirement..

<Ifldetails>
  <ExchangeID>${exchangeId}</ExchangeID>
  <MessageID>${property.SAP_MessageProcessingLogID}</MessageID>
  <Timestamp>${date:now:dd-MM-yyyy HH:mm z}</Timestamp>
  <ErrorMessage>${property.errorMessage}</ErrorMessage>
  <ErrorTrace>${exception.stacktrace}</ErrorTrace>
  <IFlowName>${camelId}</IFlowName>
</Ifldetails>

Regards,

Sriprasad Shivaram Bhat