<?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 I can create Work Order Task template via script? in Field Service Management forum</title>
    <link>https://www.servicenow.com/community/field-service-management-forum/how-i-can-create-work-order-task-template-via-script/m-p/2512091#M1412</link>
    <description>My requirement is to create WO and WOT Template via Script. I was able to achieve till WO template but cannot be able to figure out how to create WOT template along with it in "cmdb_workorder_product_model" table. var gr = new GlideRecord('cmdb_workorder_product_model'); gr.initialize(); gr.name = "TESTING Semi annual"; gr.short_description = "Semi Annual Preventive Maintenance"; gr.qualification_group = "781da52637232000158bbfc8bcbe5db8"; gr.insert();</description>
    <pubDate>Tue, 21 Mar 2023 09:23:18 GMT</pubDate>
    <dc:creator>Sagar24</dc:creator>
    <dc:date>2023-03-21T09:23:18Z</dc:date>
    <item>
      <title>How I can create Work Order Task template via script?</title>
      <link>https://www.servicenow.com/community/field-service-management-forum/how-i-can-create-work-order-task-template-via-script/m-p/2512091#M1412</link>
      <description>My requirement is to create WO and WOT Template via Script. I was able to achieve till WO template but cannot be able to figure out how to create WOT template along with it in "cmdb_workorder_product_model" table. var gr = new GlideRecord('cmdb_workorder_product_model'); gr.initialize(); gr.name = "TESTING Semi annual"; gr.short_description = "Semi Annual Preventive Maintenance"; gr.qualification_group = "781da52637232000158bbfc8bcbe5db8"; gr.insert();</description>
      <pubDate>Tue, 21 Mar 2023 09:23:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/field-service-management-forum/how-i-can-create-work-order-task-template-via-script/m-p/2512091#M1412</guid>
      <dc:creator>Sagar24</dc:creator>
      <dc:date>2023-03-21T09:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: How I can create Work Order Task template via script?</title>
      <link>https://www.servicenow.com/community/field-service-management-forum/how-i-can-create-work-order-task-template-via-script/m-p/3178323#M2081</link>
      <description>&lt;P&gt;Did you ever find a solution to this?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 16:26:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/field-service-management-forum/how-i-can-create-work-order-task-template-via-script/m-p/3178323#M2081</guid>
      <dc:creator>Ryan S</dc:creator>
      <dc:date>2025-02-14T16:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: How I can create Work Order Task template via script?</title>
      <link>https://www.servicenow.com/community/field-service-management-forum/how-i-can-create-work-order-task-template-via-script/m-p/3223629#M2151</link>
      <description>&lt;P&gt;The WOT templates aren't in the same table as the WO templates, the table for WOT templates is '&lt;SPAN&gt;cmdb_worktask_product_model' the only thing that i don't know how to do is how to make the relationship between a WO template to multiple WOT templates, but you can try with this at first step.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 06:49:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/field-service-management-forum/how-i-can-create-work-order-task-template-via-script/m-p/3223629#M2151</guid>
      <dc:creator>AngelB</dc:creator>
      <dc:date>2025-04-01T06:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: How I can create Work Order Task template via script?</title>
      <link>https://www.servicenow.com/community/field-service-management-forum/how-i-can-create-work-order-task-template-via-script/m-p/3223975#M2152</link>
      <description>&lt;P&gt;I was able to get the details I needed. The wo order template to WOT template mapping is done on this table:&amp;nbsp;&amp;nbsp;sm_m2m_somodel_stmodel&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 11:39:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/field-service-management-forum/how-i-can-create-work-order-task-template-via-script/m-p/3223975#M2152</guid>
      <dc:creator>Ryan S</dc:creator>
      <dc:date>2025-04-01T11:39:36Z</dc:date>
    </item>
  </channel>
</rss>

