Skip to content

Exit message template #6071

Answered by jonbartels
5011-5011 asked this question in Q&A
Jan 24, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

The outbound template is used for like filling in a message. So if you have a sample message that you need to send, you can paste it into the outbound template. Then your transformers can use the drag-and-drop mappings to fill in the template.

For the code you showed, what you could do instead of createSegment is just set tmp['OBX'][0]['OBX.3'] = yourvalue . If you know you will ALWAYS have 2 OBX segments you can build the template then fill it in. If you have a random number of OBX segments then keep using createSegment and remove OBX from the template

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@5011-5011
Comment options

@rjkroll
Comment options

@jonbartels
Comment options

Answer selected by 5011-5011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants