<?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 CI insert, asset state not set correctly in ITOM forum</title>
    <link>https://www.servicenow.com/community/itom-forum/ci-insert-asset-state-not-set-correctly/m-p/3156498#M120600</link>
    <description>&lt;P&gt;When we create a computer CI, the value of install_status is 1 (Installed). As expected, a hardware asset record is created (model category, computer), but the value of state is 2 (On order). It is my understanding that, because of the "Asset CI Install Status Mappings" records, the CI's "Installed" should make the asset "In use". I did verify that there is a two-way mapping of state/install_status for assets/CIs where the state value is "In use" and the install_status value is "Installed". Additionally, I can see that the AssetAndCISynchronizer script include has been updated to reflect the changes recommended in &lt;A href="https://support.servicenow.com/kb?id=kb_article_view&amp;amp;sysparm_article=KB0717902" target="_blank"&gt;https://support.servicenow.com/kb?id=kb_article_view&amp;amp;sysparm_article=KB0717902&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I modify the CI's install_status (e.g. Installed to In stock), the asset's state switches correctly. Then, changing the CI back to Installed, the asset is set as "In use".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I can tell, there are no business rules (other than the customized "Update Asset fields on change") or flows setting the asset to 'On order'. Finally, as far as I can tell, the Create Asset on insert BR and AssetandCI script include are OOB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why, on insert, are the CIs' install_status not correctly setting the assets'?&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jan 2025 18:57:27 GMT</pubDate>
    <dc:creator>mhashemi</dc:creator>
    <dc:date>2025-01-22T18:57:27Z</dc:date>
    <item>
      <title>CI insert, asset state not set correctly</title>
      <link>https://www.servicenow.com/community/itom-forum/ci-insert-asset-state-not-set-correctly/m-p/3156498#M120600</link>
      <description>&lt;P&gt;When we create a computer CI, the value of install_status is 1 (Installed). As expected, a hardware asset record is created (model category, computer), but the value of state is 2 (On order). It is my understanding that, because of the "Asset CI Install Status Mappings" records, the CI's "Installed" should make the asset "In use". I did verify that there is a two-way mapping of state/install_status for assets/CIs where the state value is "In use" and the install_status value is "Installed". Additionally, I can see that the AssetAndCISynchronizer script include has been updated to reflect the changes recommended in &lt;A href="https://support.servicenow.com/kb?id=kb_article_view&amp;amp;sysparm_article=KB0717902" target="_blank"&gt;https://support.servicenow.com/kb?id=kb_article_view&amp;amp;sysparm_article=KB0717902&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I modify the CI's install_status (e.g. Installed to In stock), the asset's state switches correctly. Then, changing the CI back to Installed, the asset is set as "In use".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I can tell, there are no business rules (other than the customized "Update Asset fields on change") or flows setting the asset to 'On order'. Finally, as far as I can tell, the Create Asset on insert BR and AssetandCI script include are OOB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why, on insert, are the CIs' install_status not correctly setting the assets'?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 18:57:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/ci-insert-asset-state-not-set-correctly/m-p/3156498#M120600</guid>
      <dc:creator>mhashemi</dc:creator>
      <dc:date>2025-01-22T18:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: CI insert, asset state not set correctly</title>
      <link>https://www.servicenow.com/community/itom-forum/ci-insert-asset-state-not-set-correctly/m-p/3156904#M120605</link>
      <description>&lt;P&gt;My PDI is taking ages to wake up, so I can't verify it (yet), but logically thinking, creating the CI isn't done the moment it is handed over to a user. That's done later. So to me, only thinking in real world logic, without validating code in ServiceNow, when you create a CI (computer), it creates the asset, but it only should be set to 'in use' when it's assigned to a user (having it on a shelf in a stockroom, where the computer starts at a company, shouldn't put it in use).&amp;nbsp;&lt;BR /&gt;Is there any logic 'on insert' of an asset that maybe sets the status to 'on order' ?&lt;BR /&gt;&lt;BR /&gt;I'll set of the alarm for my PDI again, to see it it will wake up and update you if I find a cause in the OOB code.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 07:29:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/ci-insert-asset-state-not-set-correctly/m-p/3156904#M120605</guid>
      <dc:creator>Mark Manders</dc:creator>
      <dc:date>2025-01-23T07:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: CI insert, asset state not set correctly</title>
      <link>https://www.servicenow.com/community/itom-forum/ci-insert-asset-state-not-set-correctly/m-p/3161750#M120679</link>
      <description>&lt;P&gt;Turns out it was the default value on the field. I thought it should take the value from the CI on creation, but apparently now.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 20:54:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/ci-insert-asset-state-not-set-correctly/m-p/3161750#M120679</guid>
      <dc:creator>mhashemi</dc:creator>
      <dc:date>2025-01-28T20:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: CI insert, asset state not set correctly</title>
      <link>https://www.servicenow.com/community/itom-forum/ci-insert-asset-state-not-set-correctly/m-p/3161948#M120682</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/20651"&gt;@mhashemi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Asset CI mapping table you can see the proper mapping between the both tables.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 04:31:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/ci-insert-asset-state-not-set-correctly/m-p/3161948#M120682</guid>
      <dc:creator>SK Chand Basha</dc:creator>
      <dc:date>2025-01-29T04:31:43Z</dc:date>
    </item>
  </channel>
</rss>

