<?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 Re: Need to create catalog item to create/update/delete custom table data in ServiceNow IDE, SDK, and Fluent forum</title>
    <link>https://www.servicenow.com/community/servicenow-ide-sdk-and-fluent/need-to-create-catalog-item-to-create-update-delete-custom-table/m-p/3433230#M863</link>
    <description>&lt;P&gt;Hii &lt;STRONG&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/153195"&gt;@Rajyalakshmi&lt;/a&gt;&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;I understood your use case. I actually got the same question in an interview.&lt;BR /&gt;To achieve this, you need to create a &lt;STRONG&gt;Record Producer&lt;/STRONG&gt; with 3 variables:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Table&lt;/STRONG&gt; (Reference → &lt;EM&gt;sys_db_object&lt;/EM&gt;)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Description&lt;/STRONG&gt; (String)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Caller&lt;/STRONG&gt; (Reference → &lt;EM&gt;sys_user&lt;/EM&gt;)&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Below is the script I used for mapping the variables dynamically.&lt;BR /&gt;You can apply the same logic:&lt;/P&gt;&lt;P&gt;// Ensure variable names match those defined in the Record Producer&lt;BR /&gt;var selectedTable = producer.select_table;&lt;BR /&gt;var caller = producer.caller;&lt;BR /&gt;var description = producer.short_description;&lt;/P&gt;&lt;P&gt;if (selectedTable == 'incident') {&lt;BR /&gt;var inc = new GlideRecord('incident');&lt;BR /&gt;inc.initialize();&lt;BR /&gt;inc.caller_id = caller;&lt;BR /&gt;inc.short_description = description;&lt;BR /&gt;inc.insert();&lt;BR /&gt;action.setRedirectURL(inc);&lt;BR /&gt;current.setAbortAction(true); // Prevent default record creation&lt;/P&gt;&lt;P&gt;} else if (selectedTable == 'problem') {&lt;BR /&gt;var prob = new GlideRecord('problem');&lt;BR /&gt;prob.initialize();&lt;BR /&gt;prob.caller_id = caller;&lt;BR /&gt;prob.short_description = description;&lt;BR /&gt;prob.insert();&lt;BR /&gt;current.setAbortAction(true); // Prevent default record creation&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;If this helps, &lt;STRONG&gt;please mark the answer as helpful in the ServiceNow Community&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Nov 2025 07:34:40 GMT</pubDate>
    <dc:creator>its_SumitNow</dc:creator>
    <dc:date>2025-11-21T07:34:40Z</dc:date>
    <item>
      <title>Need to create catalog item to create/update/delete custom table data</title>
      <link>https://www.servicenow.com/community/servicenow-ide-sdk-and-fluent/need-to-create-catalog-item-to-create-update-delete-custom-table/m-p/3433175#M859</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create&amp;nbsp;catalog item to create/update/delete custom table data ,could you please suggest good practice.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 06:20:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ide-sdk-and-fluent/need-to-create-catalog-item-to-create-update-delete-custom-table/m-p/3433175#M859</guid>
      <dc:creator>Rajyalakshmi</dc:creator>
      <dc:date>2025-11-21T06:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create catalog item to create/update/delete custom table data</title>
      <link>https://www.servicenow.com/community/servicenow-ide-sdk-and-fluent/need-to-create-catalog-item-to-create-update-delete-custom-table/m-p/3433189#M860</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/153195"&gt;@Rajyalakshmi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not quite understand your question. You can off course create a catalog item, and then setup rules on the backend to create/update/delete.... What have you tried so far and where do you get stuck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 06:43:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ide-sdk-and-fluent/need-to-create-catalog-item-to-create-update-delete-custom-table/m-p/3433189#M860</guid>
      <dc:creator>AndersBGS</dc:creator>
      <dc:date>2025-11-21T06:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create catalog item to create/update/delete custom table data</title>
      <link>https://www.servicenow.com/community/servicenow-ide-sdk-and-fluent/need-to-create-catalog-item-to-create-update-delete-custom-table/m-p/3433196#M861</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/153195"&gt;@Rajyalakshmi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;why would your end users raise request to create/update/delete data in custom table?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; If my response helped, please mark it as correct &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; and close the thread &lt;span class="lia-unicode-emoji" title=":locked:"&gt;🔒&lt;/span&gt;— this helps future readers find the solution faster! &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 06:49:58 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ide-sdk-and-fluent/need-to-create-catalog-item-to-create-update-delete-custom-table/m-p/3433196#M861</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-11-21T06:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create catalog item to create/update/delete custom table data</title>
      <link>https://www.servicenow.com/community/servicenow-ide-sdk-and-fluent/need-to-create-catalog-item-to-create-update-delete-custom-table/m-p/3433230#M863</link>
      <description>&lt;P&gt;Hii &lt;STRONG&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/153195"&gt;@Rajyalakshmi&lt;/a&gt;&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;I understood your use case. I actually got the same question in an interview.&lt;BR /&gt;To achieve this, you need to create a &lt;STRONG&gt;Record Producer&lt;/STRONG&gt; with 3 variables:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Table&lt;/STRONG&gt; (Reference → &lt;EM&gt;sys_db_object&lt;/EM&gt;)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Description&lt;/STRONG&gt; (String)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Caller&lt;/STRONG&gt; (Reference → &lt;EM&gt;sys_user&lt;/EM&gt;)&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Below is the script I used for mapping the variables dynamically.&lt;BR /&gt;You can apply the same logic:&lt;/P&gt;&lt;P&gt;// Ensure variable names match those defined in the Record Producer&lt;BR /&gt;var selectedTable = producer.select_table;&lt;BR /&gt;var caller = producer.caller;&lt;BR /&gt;var description = producer.short_description;&lt;/P&gt;&lt;P&gt;if (selectedTable == 'incident') {&lt;BR /&gt;var inc = new GlideRecord('incident');&lt;BR /&gt;inc.initialize();&lt;BR /&gt;inc.caller_id = caller;&lt;BR /&gt;inc.short_description = description;&lt;BR /&gt;inc.insert();&lt;BR /&gt;action.setRedirectURL(inc);&lt;BR /&gt;current.setAbortAction(true); // Prevent default record creation&lt;/P&gt;&lt;P&gt;} else if (selectedTable == 'problem') {&lt;BR /&gt;var prob = new GlideRecord('problem');&lt;BR /&gt;prob.initialize();&lt;BR /&gt;prob.caller_id = caller;&lt;BR /&gt;prob.short_description = description;&lt;BR /&gt;prob.insert();&lt;BR /&gt;current.setAbortAction(true); // Prevent default record creation&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;If this helps, &lt;STRONG&gt;please mark the answer as helpful in the ServiceNow Community&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 07:34:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ide-sdk-and-fluent/need-to-create-catalog-item-to-create-update-delete-custom-table/m-p/3433230#M863</guid>
      <dc:creator>its_SumitNow</dc:creator>
      <dc:date>2025-11-21T07:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create catalog item to create/update/delete custom table data</title>
      <link>https://www.servicenow.com/community/servicenow-ide-sdk-and-fluent/need-to-create-catalog-item-to-create-update-delete-custom-table/m-p/3433643#M867</link>
      <description>&lt;P&gt;Not to end users ,for set of group users .we have migrated one application from one private tool to&amp;nbsp; ServiceNow. We have application data too.We have imported this data in custom table in ServiceNow.&lt;BR /&gt;In future there could be new data which need to be insert in this custom table or modify the updating data .&lt;/P&gt;&lt;P&gt;what is best way to do this .&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 13:09:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ide-sdk-and-fluent/need-to-create-catalog-item-to-create-update-delete-custom-table/m-p/3433643#M867</guid>
      <dc:creator>Rajyalakshmi</dc:creator>
      <dc:date>2025-11-21T13:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create catalog item to create/update/delete custom table data</title>
      <link>https://www.servicenow.com/community/servicenow-ide-sdk-and-fluent/need-to-create-catalog-item-to-create-update-delete-custom-table/m-p/3433654#M868</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/153195"&gt;@Rajyalakshmi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can use catalog item for this with variables&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; If my response helped, please mark it as correct &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; and close the thread &lt;span class="lia-unicode-emoji" title=":locked:"&gt;🔒&lt;/span&gt;— this helps future readers find the solution faster! &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 13:20:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ide-sdk-and-fluent/need-to-create-catalog-item-to-create-update-delete-custom-table/m-p/3433654#M868</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-11-21T13:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create catalog item to create/update/delete custom table data</title>
      <link>https://www.servicenow.com/community/servicenow-ide-sdk-and-fluent/need-to-create-catalog-item-to-create-update-delete-custom-table/m-p/3448658#M959</link>
      <description>&lt;P&gt;I have created catalog item with set of variables ,and implemented flow using create /update /delete record actions .It is working as expected .flow actions are very useful with no code ,able to achive requirement.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Dec 2025 16:00:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ide-sdk-and-fluent/need-to-create-catalog-item-to-create-update-delete-custom-table/m-p/3448658#M959</guid>
      <dc:creator>Rajyalakshmi</dc:creator>
      <dc:date>2025-12-12T16:00:25Z</dc:date>
    </item>
  </channel>
</rss>

