We will need to configure a new inbound Message to process the attachments returned from the poll. We may also utilise all the previously configured Messages in testing our Integration.
In order to process the attachments returned from the remote system we will configure a new inbound Message.
AddAttachmentInbound
If you have edited the Endpoint URLs in the Connection, the Create Poll Processor and the Parent & Child Poll Processors, it will be necessary to utilise the Messages we created in the earlier Guides in order to test the Integration and process the data that is returned from the remote system. The following Messages will be used:
CreateIncidentInbound
UpdateIncidentInbound
ResolveIncidentInbound
CreateIncidentResponse
For the same reason as above and if you have edited the outbound Message Path for the previously configured Messages, it will be necessary to test those also. The following Messages will be used:
CreateIncident
UpdateIncident
ResolveIncident
CreateIncidentInboundReceipt
Let's now configure the AddAttachmentInbound Message.
AddAttachmentInbound MessageWe will configure another inbound update type Message to process the attachment data returned from the poll and update our target record.
Click on the 'Messages' icon to open the Messages page. Click New.
The fields to be configured for the AddAttachmentInbound New Message modal are as follows:
Your AddAttachmentInbound New Message modal should look like this:
Click Submit and view to further configure the Message.
Navigate to Message > Response.
The Response fields to be configured are as follows:
*This field is automatically defaulted to true.
Your Response form should look like this:
Navigate to Message > Bond.
The Bond fields to be configured are as follows:
*These fields are automatically populated.
Your Bond form should look like this:
Navigate to Inbound > Settings.
The Inbound Settings fields to be configured are as follows:
We have chosen the 'Internal' method because, in the payload we built, we supplied the correlation_id
.
Your Inbound Settings form should look like this:
Navigate to Advanced > Script Editor.
Click on View > Inbound.
The Script Editor fields to be configured are as follows:
The code in the 'Payload to Stage' script field should look like this:
Your Script Editor fields should look like this:
Click Save.
We can now move on to Testing.