Options

Multiple nodes with same name

lubostlubost Member Posts: 618
We have XMLPort in NAV 2017 with following snippet:

Node Name Prefix Node Type Source Type Data Source
Id Element Text MsgIdB
OrgId Element Text MsgOrgIdB
BICOrBEI Element Text MsgBICOrBEI
Othr Element Text MsgOthrB
Id Element Text MsgOthrIdB
PrvtId Element Text MsgPrvtId
Othr Element Text MsgOthrC
Id Element Text MsgOthrIdC
In NAV 2017 have been possible to use same node names (and define variable with other names for each occurence of same node. XMLPort is used for import data from foreign system and node names can not be modified.
How to transfer this XMLPort to AL via VS Code?
NodeName property is not usable for textelement.

Thanks in advance.

Answers

  • Options
    ftorneroftornero Member Posts: 523
    Hello @lubost ,

    You can use the XmlName property:

    jczo3f9an26n.png
  • Options
    lubostlubost Member Posts: 618
    Thank you. Which node would be awaited - taxamount_totalamount or TotalAmount?
  • Options
    ftorneroftornero Member Posts: 523
    TotalAmount
  • Options
    lubostlubost Member Posts: 618
    Thank you. I hope that promoted solution would be OK.
Sign In or Register to comment.