<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question How to parse AWS payload? in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/how-to-parse-aws-payload/m-p/3251485#M2942</link>
    <description>&lt;P class=""&gt;Hi all, I’m trying to parse a payload coming from AWS in ServiceNow, and I need some guidance on how to go about extracting a specific field. The payload looks like this:&amp;nbsp;{&lt;BR /&gt;"statusCode": 200,&lt;BR /&gt;"headers": {"Content-Type": "application/json"},&lt;BR /&gt;"body": "{\"Operation\": \"SAVE\", \"Message\": \"SUCCESS\", \"Item\": {\"rpt\": \"INQ0000001234\", \"userId\": \"Firstname.LastName\", \"sessionID\": \"glide.scheduler.worker.4\", \"cusip\": \"000000001\", \"u_cusip_changed\": \"true\", ..."&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;I’m currently working with this script in my Scripted REST API to extract the field u_cusip_changed and update another table based on its value:&amp;nbsp;&lt;/P&gt;&lt;P&gt;var cusipChanged = requestBody.u_cusip_changed;&lt;BR /&gt;gs.info("Update Case REST cusipChanged: " + cusipChanged);&lt;/P&gt;&lt;P&gt;if (cusipChanged == "true") {&lt;BR /&gt;var caseGR = new GlideRecord('x_g_afss_inquiry_inquiries');&lt;BR /&gt;caseGR.addQuery('number', rptBody);&lt;BR /&gt;caseGR.query();&lt;/P&gt;&lt;P&gt;if (caseGR.next()) {&lt;BR /&gt;caseGR.u_cusip_changed = true;&lt;BR /&gt;caseGR.update();&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Apr 2025 14:03:17 GMT</pubDate>
    <dc:creator>dswider</dc:creator>
    <dc:date>2025-04-30T14:03:17Z</dc:date>
    <item>
      <title>How to parse AWS payload?</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-parse-aws-payload/m-p/3251485#M2942</link>
      <description>&lt;P class=""&gt;Hi all, I’m trying to parse a payload coming from AWS in ServiceNow, and I need some guidance on how to go about extracting a specific field. The payload looks like this:&amp;nbsp;{&lt;BR /&gt;"statusCode": 200,&lt;BR /&gt;"headers": {"Content-Type": "application/json"},&lt;BR /&gt;"body": "{\"Operation\": \"SAVE\", \"Message\": \"SUCCESS\", \"Item\": {\"rpt\": \"INQ0000001234\", \"userId\": \"Firstname.LastName\", \"sessionID\": \"glide.scheduler.worker.4\", \"cusip\": \"000000001\", \"u_cusip_changed\": \"true\", ..."&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;I’m currently working with this script in my Scripted REST API to extract the field u_cusip_changed and update another table based on its value:&amp;nbsp;&lt;/P&gt;&lt;P&gt;var cusipChanged = requestBody.u_cusip_changed;&lt;BR /&gt;gs.info("Update Case REST cusipChanged: " + cusipChanged);&lt;/P&gt;&lt;P&gt;if (cusipChanged == "true") {&lt;BR /&gt;var caseGR = new GlideRecord('x_g_afss_inquiry_inquiries');&lt;BR /&gt;caseGR.addQuery('number', rptBody);&lt;BR /&gt;caseGR.query();&lt;/P&gt;&lt;P&gt;if (caseGR.next()) {&lt;BR /&gt;caseGR.u_cusip_changed = true;&lt;BR /&gt;caseGR.update();&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 14:03:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-parse-aws-payload/m-p/3251485#M2942</guid>
      <dc:creator>dswider</dc:creator>
      <dc:date>2025-04-30T14:03:17Z</dc:date>
    </item>
  </channel>
</rss>

