<?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 Issue in sending Change start date and end date through Jason in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/issue-in-sending-change-start-date-and-end-date-through-jason/m-p/2959900#M1121490</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change management – The payload below from a recent change: That change was updated at Yesterday 16:00 by API and they sent over the payload Inbound Change Update - Payload:&lt;/P&gt;&lt;P&gt;{"start_date":"2024-05-23 15:00:00","end_date":"2024-05-27 15:50:00"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So this would have changed it&lt;SPAN&gt;&amp;nbsp;– API&lt;/SPAN&gt;&amp;nbsp;sent this at a 16:00 start time and the&amp;nbsp; Payload amended it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In our system we are using below -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if (current.start_date.changes()) {
            jsonBody.start_date = current.getValue('start_date');   
        }
        if (current.end_date.changes()) {
            jsonBody.end_date = current.getValue('end_date');    
   }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2024 16:35:50 GMT</pubDate>
    <dc:creator>Prashant_13S</dc:creator>
    <dc:date>2024-06-11T16:35:50Z</dc:date>
    <item>
      <title>Issue in sending Change start date and end date through Jason</title>
      <link>https://www.servicenow.com/community/developer-forum/issue-in-sending-change-start-date-and-end-date-through-jason/m-p/2959900#M1121490</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change management – The payload below from a recent change: That change was updated at Yesterday 16:00 by API and they sent over the payload Inbound Change Update - Payload:&lt;/P&gt;&lt;P&gt;{"start_date":"2024-05-23 15:00:00","end_date":"2024-05-27 15:50:00"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So this would have changed it&lt;SPAN&gt;&amp;nbsp;– API&lt;/SPAN&gt;&amp;nbsp;sent this at a 16:00 start time and the&amp;nbsp; Payload amended it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In our system we are using below -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if (current.start_date.changes()) {
            jsonBody.start_date = current.getValue('start_date');   
        }
        if (current.end_date.changes()) {
            jsonBody.end_date = current.getValue('end_date');    
   }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 16:35:50 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/issue-in-sending-change-start-date-and-end-date-through-jason/m-p/2959900#M1121490</guid>
      <dc:creator>Prashant_13S</dc:creator>
      <dc:date>2024-06-11T16:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in sending Change start date and end date through Jason</title>
      <link>https://www.servicenow.com/community/developer-forum/issue-in-sending-change-start-date-and-end-date-through-jason/m-p/2959913#M1121491</link>
      <description>&lt;P&gt;So the time should have been 16:00:00 in the payload?&lt;/P&gt;
&lt;P&gt;In that case , they should have sent the display value of the dates.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 16:46:02 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/issue-in-sending-change-start-date-and-end-date-through-jason/m-p/2959913#M1121491</guid>
      <dc:creator>SanjivMeher</dc:creator>
      <dc:date>2024-06-11T16:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in sending Change start date and end date through Jason</title>
      <link>https://www.servicenow.com/community/developer-forum/issue-in-sending-change-start-date-and-end-date-through-jason/m-p/2960093#M1121536</link>
      <description>&lt;P&gt;Hi Sanjiv,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me rephrase the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a bidirectional rest api integration.&lt;/P&gt;&lt;P&gt;In which third party can create change request and when we are updating the planned start date and end date, then same should get updated in change record of target instance but the issue is when we are updating planned start date and end date in source instance same is getting updated but with the difference of 1 hour.&lt;/P&gt;&lt;P&gt;for example if we are updating 16:00:00 in our change request (Source instance) then it is sending from here 15:00:00 hrs to third party(target instance).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Scheduled End(date &amp;amp; time) -&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;27/05/2024 16:50:00&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Scheduled Start(date &amp;amp; time) -&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;27/05/2024 16:00:00&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;{"start_date":"2024-05-27 15:00:00","end_date":"2024-05-27 15:50:00","i&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code using to capture the update -&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;            if (current.start_date.changes()) {
            jsonBody.start_date = current.getValue('start_date');   
              }
            if (current.end_date.changes()) {
            jsonBody.end_date = current.getValue('end_date');    
             }&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 11 Jun 2024 19:31:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/issue-in-sending-change-start-date-and-end-date-through-jason/m-p/2960093#M1121536</guid>
      <dc:creator>Prashant_13S</dc:creator>
      <dc:date>2024-06-11T19:31:49Z</dc:date>
    </item>
  </channel>
</rss>

