XML tags using key value pair
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2022 02:26 AM
Hi Team,
Current Functionality I have is we are creating request XML using SOAP template , in this SOAP template under respective SOAP functions we are currently substituting values using scripts.
Ex : <reservelist>
<reserver key = "${reservelist.key}">${reservevalue}</reserver>
</reservelist>
This is in the soap template under repeatable tags.
My requirement is to send 2 key value pairs , how can I approach this because there needs to be two key value pairs and how will we substitute the key value pairs using script. Below should be sent in the request XML:
<reservelist>
<reserver key = "${reservelist.key}">${reservevalue}</reserver>
<reserver key = "${reservelist.key}">${reservevalue}</reserver>
</reservelist>
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2022 02:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2022 02:36 AM
Hi Abhay,
Thanks a lot for your quick reply.The wiki link is not opening as it has been discontinued , any other source do you have?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2022 02:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2022 02:55 AM
Hi,
what you can do is this
1) form the XML string from your script and use that directly in request body instead of using variable substitutions.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader