cancel
Showing results for 
Search instead for 
Did you mean: 

Variable Substitution - How do I use a segment atribute ?

Former Member
0 Kudos

Hi all, I'm facing a problem with variable substitution in receiver comunication channel.

I got the follow message:


<?xml version="1.0" encoding="UTF-8"?>
<lote nro="000262007">
    <etc>...</etc>
</lote>

I want to get atribute <b>nro</b> from segment lote to use in variable substitution, how can I do it?

Accepted Solutions (0)

Answers (2)

Answers (2)

bhavesh_kantilal
Active Contributor
0 Kudos

Why not use Dynamic Configuration instead?

Regards

Bhavesh

prateek
Active Contributor
0 Kudos

Variable sucstitution doesnt allow a way to achieve this.

There could be some workarounds

1. Use some dummy element in ur xml message with same value as tht of the attribute.

2. Use adapter specific message attributes or dynamic file name functionality

Regards,

Prateek

Former Member
0 Kudos

Hi Prateek, thanks for your help.

I'll try to do a workaround.