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

Accepted Solutions (0)

Answers (3)

Answers (3)

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

PiotrRadzki
Active Participant
0 Kudos

For Process Direct adapter you can only use Headers to provide such properties over to the next iFlow.

Remember to list the headers in the field Allowed Headers of the integration flow’s runtime configuration.

BR, Piotr

VijayKonam
Active Contributor
0 Kudos

You need to capture them in the iFlow that failed and pass them as Properties/Headers. Process Direct adapter keeps the properties across iFlows AFAIK. But you may want to test and confirm that. Otherwise, headers are the only way.