- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2018 04:39 AM
Hi Team,
am getting XML response in REST Post method. am in scoped application. am not able to fetch the values from the XML response. i have parsed the response.
var xmlDoc = new XMLDocument2();
xmlDoc.parseXML(responseBody.toString());
var nodeValue= gs.getXMLText(xmlDoc, 'node tag');
any alternative for getXMLText in scoped application.
Appreciate your inputs.
Thanks,
Lohith
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2018 03:11 AM
Hi Ankur,
Yes, i was able to achieve with the below code.
var xmlDoc = new XMLDocument2();
xmlDoc.parseXML(responseBody.toString());
xmlDoc.getNodeText(// node name);
Thanks,
Lohith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2018 05:06 AM
Hi Lohith,
Can you share the sample xml received so that the script can be created.
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2018 01:06 AM
Hi Lohith,
Any update on this?
Can you mark my answer as correct, helpful and hit like if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2018 03:11 AM
Hi Ankur,
Yes, i was able to achieve with the below code.
var xmlDoc = new XMLDocument2();
xmlDoc.parseXML(responseBody.toString());
xmlDoc.getNodeText(// node name);
Thanks,
Lohith