on 09-08-2023 12:10 PM
Hi,
Using SOAP Node.JS Library version is 1.0.0 forming a json payload as let oData = {
MessageHeader: {
CreationDateTime:"2017-02-18T09:00:00Z",
ID: "12345678"
},
JournalEntryCreateRequest: {
MessageHeader: {
CreationDateTime:"2017-02-18T09:00:00Z",
ID: "12345678"
},
JournalEntry: {..
AmountInTransactionCurrency: {
"$value": "10", "$currencyCode": "EUR" }, }
however while the json content is getting converted to xml it is getting converted to <AmountInTransactionCurrency>10</AmountInTransactionCurrency> however desired structure is
<AmountInTransactionCurrency currencyCode="EUR">10</AmountInTransactionCurrency>
how can currencyCode attribute be passed as EUR as above ? Any help would be appreciated.
Regards,
Vipin
This format worked - AmountInTransactionCurrency: {
attributes: { 'currencyCode': "EUR", }, $value: 10, }You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.