<?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 trigger a Rest API (Post) call, When users clicks 'Save as a draft' button on service catalog in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/how-to-trigger-a-rest-api-post-call-when-users-clicks-save-as-a/m-p/3382318#M1228446</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently I am working on a requirement where a catalog item is being initiated via Jira. My task is to push back the details of the draft version to Jira when anyone clicks on 'Save as a draft' button. So that for the same record no one should initiate the catalog item.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;How can I modify the save as draft button and that too for one particular catalog item.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Sep 2025 14:43:50 GMT</pubDate>
    <dc:creator>Obito</dc:creator>
    <dc:date>2025-09-16T14:43:50Z</dc:date>
    <item>
      <title>How to trigger a Rest API (Post) call, When users clicks 'Save as a draft' button on service catalog</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-trigger-a-rest-api-post-call-when-users-clicks-save-as-a/m-p/3382318#M1228446</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently I am working on a requirement where a catalog item is being initiated via Jira. My task is to push back the details of the draft version to Jira when anyone clicks on 'Save as a draft' button. So that for the same record no one should initiate the catalog item.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;How can I modify the save as draft button and that too for one particular catalog item.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 14:43:50 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-trigger-a-rest-api-post-call-when-users-clicks-save-as-a/m-p/3382318#M1228446</guid>
      <dc:creator>Obito</dc:creator>
      <dc:date>2025-09-16T14:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a Rest API (Post) call, When users clicks 'Save as a draft' button on service cat</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-trigger-a-rest-api-post-call-when-users-clicks-save-as-a/m-p/3382330#M1228448</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/248101"&gt;@Obito&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;H5&gt;Option 1: Business Rule (on sc_cart_item or sc_req_item)&lt;/H5&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Add &lt;STRONG&gt;after insert/update BR&lt;/STRONG&gt; on sc_cart_item.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Condition: current.cat_item == "&amp;lt;sys_id of your catalog item&amp;gt;" and state == 'draft'.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Action: Call your Script Include that posts to Jira REST.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H5&gt;Option 2: Create a Flow with:&lt;/H5&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Trigger:&lt;/STRONG&gt; Record created/updated → Table = sc_cart_item (or sc_req_item depending on where drafts are stored).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Condition:&lt;/STRONG&gt; Catalog Item == X AND Stage == draft.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Action:&lt;/STRONG&gt; Outbound REST action → POST to Jira.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In&amp;nbsp; my views don’t modify OOTB "Save as Draft" button directly. Instead, go with B&lt;STRONG&gt;usiness Rule or&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;Flow Designer&lt;/STRONG&gt;&amp;nbsp;depending on whether you prefers &lt;STRONG&gt;scripted&lt;/STRONG&gt; or &lt;STRONG&gt;config-driven&lt;/STRONG&gt; solutions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Thanks &amp;amp; Regards,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Muhammad Iftikhar&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;If my response helped, please mark it as the accepted solution so others can benefit as well.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 14:52:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-trigger-a-rest-api-post-call-when-users-clicks-save-as-a/m-p/3382330#M1228448</guid>
      <dc:creator>miftikhar20</dc:creator>
      <dc:date>2025-09-16T14:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a Rest API (Post) call, When users clicks 'Save as a draft' button on service cat</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-trigger-a-rest-api-post-call-when-users-clicks-save-as-a/m-p/3382339#M1228449</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/260618"&gt;@miftikhar20&lt;/a&gt;&amp;nbsp;, I will try this approach.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 14:58:30 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-trigger-a-rest-api-post-call-when-users-clicks-save-as-a/m-p/3382339#M1228449</guid>
      <dc:creator>Obito</dc:creator>
      <dc:date>2025-09-16T14:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a Rest API (Post) call, When users clicks 'Save as a draft' button on service cat</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-trigger-a-rest-api-post-call-when-users-clicks-save-as-a/m-p/3382376#M1228458</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/248101"&gt;@Obito&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;whenever Save as draft is clicked data gets inserted into backend table (&lt;STRONG&gt;sc_cart_item&lt;/STRONG&gt;), but remember it stays there for small amount of time.&lt;/P&gt;
&lt;P&gt;you can have after insert BR on that table which triggers for your catalog item&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnkurBawiskar_1-1758036274783.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/470499i3C75B5EED5F250D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnkurBawiskar_1-1758036274783.png" alt="AnkurBawiskar_1-1758036274783.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when you open that record it shows the variables saved in draft version&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnkurBawiskar_0-1758036265434.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/470498i8253E7474D24AB16/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnkurBawiskar_0-1758036265434.png" alt="AnkurBawiskar_0-1758036265434.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt;&lt;BR /&gt;you can customize that button and handle your logic and it will require some heavy customization in that widget&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 15:24:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-trigger-a-rest-api-post-call-when-users-clicks-save-as-a/m-p/3382376#M1228458</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-09-16T15:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a Rest API (Post) call, When users clicks 'Save as a draft' button on service cat</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-trigger-a-rest-api-post-call-when-users-clicks-save-as-a/m-p/3382392#M1228462</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/265966"&gt;@Ankur Bawiskar&lt;/a&gt;&amp;nbsp;, Thank you for the reply. I will try the approach suggested by you.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 15:30:22 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-trigger-a-rest-api-post-call-when-users-clicks-save-as-a/m-p/3382392#M1228462</guid>
      <dc:creator>Obito</dc:creator>
      <dc:date>2025-09-16T15:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a Rest API (Post) call, When users clicks 'Save as a draft' button on service cat</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-trigger-a-rest-api-post-call-when-users-clicks-save-as-a/m-p/3382770#M1228538</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/248101"&gt;@Obito&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe I shared a working approach and it should work for you.&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 03:05:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-trigger-a-rest-api-post-call-when-users-clicks-save-as-a/m-p/3382770#M1228538</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-09-17T03:05:17Z</dc:date>
    </item>
  </channel>
</rss>

