<?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 Difference between Postman and ServiceNow when sys_id is used. Why? in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/difference-between-postman-and-servicenow-when-sys-id-is-used/m-p/2414234#M941472</link>
    <description>&lt;P&gt;On the incident form, to populate the &lt;STRONG&gt;'Assignment group'&lt;/STRONG&gt; field, if I use the &lt;STRONG&gt;Name&lt;/STRONG&gt; of the group in postman/rest API explorer, it works fine and udpate will happen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dell11.png" style="width: 631px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/225281i7EC42170B8E79005/image-dimensions/631x104?v=v2" width="631" height="104" role="button" title="dell11.png" alt="dell11.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the same operation will not work if I make use of Business rule like (current.assignment_group= "Test Group");&lt;/P&gt;&lt;P&gt;In business rule, only if I pass the sys_id then it gets updated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note -&amp;nbsp;&lt;/P&gt;&lt;P&gt;if I write like this (current.assigned_to = "john viva"); ---- this work.... why not for assignment group?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How does it actually work? Why it differs from Business rule vs Postman/REST API explorer?&lt;/P&gt;</description>
    <pubDate>Thu, 04 Apr 2024 08:29:10 GMT</pubDate>
    <dc:creator>Suggy</dc:creator>
    <dc:date>2024-04-04T08:29:10Z</dc:date>
    <item>
      <title>Difference between Postman and ServiceNow when sys_id is used. Why?</title>
      <link>https://www.servicenow.com/community/developer-forum/difference-between-postman-and-servicenow-when-sys-id-is-used/m-p/2414234#M941472</link>
      <description>&lt;P&gt;On the incident form, to populate the &lt;STRONG&gt;'Assignment group'&lt;/STRONG&gt; field, if I use the &lt;STRONG&gt;Name&lt;/STRONG&gt; of the group in postman/rest API explorer, it works fine and udpate will happen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dell11.png" style="width: 631px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/225281i7EC42170B8E79005/image-dimensions/631x104?v=v2" width="631" height="104" role="button" title="dell11.png" alt="dell11.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the same operation will not work if I make use of Business rule like (current.assignment_group= "Test Group");&lt;/P&gt;&lt;P&gt;In business rule, only if I pass the sys_id then it gets updated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note -&amp;nbsp;&lt;/P&gt;&lt;P&gt;if I write like this (current.assigned_to = "john viva"); ---- this work.... why not for assignment group?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How does it actually work? Why it differs from Business rule vs Postman/REST API explorer?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 08:29:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/difference-between-postman-and-servicenow-when-sys-id-is-used/m-p/2414234#M941472</guid>
      <dc:creator>Suggy</dc:creator>
      <dc:date>2024-04-04T08:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Query on populating reference fields - sys_id or name?</title>
      <link>https://www.servicenow.com/community/developer-forum/difference-between-postman-and-servicenow-when-sys-id-is-used/m-p/2414262#M941483</link>
      <description>&lt;P&gt;Best Practice -&lt;/P&gt;&lt;P&gt;To use sys_id of reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reason - reference should be sys_id.&lt;/P&gt;&lt;P&gt;It is not working for business rule I guess there can be multiple group with same name.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 16:29:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/difference-between-postman-and-servicenow-when-sys-id-is-used/m-p/2414262#M941483</guid>
      <dc:creator>SuhasPSalunkhe</dc:creator>
      <dc:date>2022-12-13T16:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Query on populating reference fields - sys_id or name?</title>
      <link>https://www.servicenow.com/community/developer-forum/difference-between-postman-and-servicenow-when-sys-id-is-used/m-p/2414266#M941486</link>
      <description>&lt;P&gt;There is only 1 group with that name. Infact this scenario is happening for ALL the reference fields with 'Assigned to' as an exception. wondering why/how...&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 16:33:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/difference-between-postman-and-servicenow-when-sys-id-is-used/m-p/2414266#M941486</guid>
      <dc:creator>Suggy</dc:creator>
      <dc:date>2022-12-13T16:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Query on populating reference fields - sys_id or name?</title>
      <link>https://www.servicenow.com/community/developer-forum/difference-between-postman-and-servicenow-when-sys-id-is-used/m-p/2414374#M941514</link>
      <description>&lt;P&gt;Hi Suggy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On close inspection of the REST API documentation, you'll notice you can use a flag to control&amp;nbsp;&lt;SPAN&gt;whether to set field values using the display value or the actual value. The flag is: sysparm_input_display_value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is however set to false by default. I would say this behavior will depend on which API you're using eg: Table API vs other vs your own scripted REST API. There's a lot of merit in using display values (where unique) as external systems will not always have access to ServiceNow sys_id's (not to mention the overhead of maintaining them).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When using API and integrations I'd also suggest leveraging transform maps and make use of staging tables so you can have full control of the data being passed and manipulate it if required. The staging table can also be used for 'temporary' auditing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Business rules by contrast being internal and native to ServiceNow will only let you set a reference field by using the appropriate sys_id.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;To help others in the community with the same or similar question, please can you mark my reply as correct and/or helpful.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Thanks,&lt;/P&gt;&lt;P class=""&gt;Robbie&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 17:41:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/difference-between-postman-and-servicenow-when-sys-id-is-used/m-p/2414374#M941514</guid>
      <dc:creator>Robbie</dc:creator>
      <dc:date>2022-12-13T17:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Query on populating reference fields - sys_id or name?</title>
      <link>https://www.servicenow.com/community/developer-forum/difference-between-postman-and-servicenow-when-sys-id-is-used/m-p/2414455#M941533</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/57655"&gt;@Robbie&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In REST API explorer, this is what I did (tried updating an Incident) with below 4 combinations&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Suggy_0-1670956447562.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/225358iFC8A264883A510DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Suggy_0-1670956447562.png" alt="Suggy_0-1670956447562.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, in each of the above case, the incidnet got udpated with actual values for both the fields..... I dont see any difference in setting the field "sysparm_input_display_value" TRUE/FALSE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 18:36:33 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/difference-between-postman-and-servicenow-when-sys-id-is-used/m-p/2414455#M941533</guid>
      <dc:creator>Suggy</dc:creator>
      <dc:date>2022-12-13T18:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Query on populating reference fields - sys_id or name?</title>
      <link>https://www.servicenow.com/community/developer-forum/difference-between-postman-and-servicenow-when-sys-id-is-used/m-p/2418002#M942674</link>
      <description>&lt;P&gt;Anyone?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 07:59:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/difference-between-postman-and-servicenow-when-sys-id-is-used/m-p/2418002#M942674</guid>
      <dc:creator>Suggy</dc:creator>
      <dc:date>2022-12-16T07:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Query on populating reference fields - sys_id or name?</title>
      <link>https://www.servicenow.com/community/developer-forum/difference-between-postman-and-servicenow-when-sys-id-is-used/m-p/2418045#M942688</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/239192"&gt;@Suggy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. You can pass sys_id in JSON.&lt;/P&gt;&lt;P&gt;2. Set the display value of Assignment group in backend by using below code:&lt;/P&gt;&lt;P&gt;current.assignment_group.setDisplayValue('response.assignment_group');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Reshma&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;**Please mark my answer correct or helpful based on the impact**&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 08:25:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/difference-between-postman-and-servicenow-when-sys-id-is-used/m-p/2418045#M942688</guid>
      <dc:creator>reshmapatil</dc:creator>
      <dc:date>2022-12-16T08:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Query on populating reference fields - sys_id or name?</title>
      <link>https://www.servicenow.com/community/developer-forum/difference-between-postman-and-servicenow-when-sys-id-is-used/m-p/2422910#M944343</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/354777"&gt;@reshmapatil&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;current.assigned_to =&amp;nbsp; "Demo User"; -----&amp;gt; works&lt;/P&gt;&lt;P&gt;current.assignment_group = "Demo Group"; ------&amp;gt; does not work... WHY?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 08:27:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/difference-between-postman-and-servicenow-when-sys-id-is-used/m-p/2422910#M944343</guid>
      <dc:creator>Suggy</dc:creator>
      <dc:date>2024-04-04T08:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Query on populating reference fields - sys_id or name?</title>
      <link>https://www.servicenow.com/community/developer-forum/difference-between-postman-and-servicenow-when-sys-id-is-used/m-p/2887571#M1101617</link>
      <description>&lt;P&gt;ANYONE?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 08:27:57 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/difference-between-postman-and-servicenow-when-sys-id-is-used/m-p/2887571#M1101617</guid>
      <dc:creator>Suggy</dc:creator>
      <dc:date>2024-04-04T08:27:57Z</dc:date>
    </item>
  </channel>
</rss>

