<?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 Service Bridge Transform Current Object? in Technology forum</title>
    <link>https://www.servicenow.com/community/technology-forum/service-bridge-transform-current-object/m-p/3266289#M157</link>
    <description>&lt;P&gt;Hi Service Bridgers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone using the Transforms for Service Bridge know of a way to get the current object or the related task object in a transform?&lt;BR /&gt;Feature Reference:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.servicenow.com/docs/csh?topicname=service-bridge-v2-create-transform.html&amp;amp;version=latest" target="_blank"&gt;https://www.servicenow.com/docs/csh?topicname=service-bridge-v2-create-transform.html&amp;amp;version=latest&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was able to get &lt;STRONG&gt;current.parent.sys_id&lt;/STRONG&gt; in a Service Bridge transform but found that it only worked when the record was intitially synced. Aftwards the "current" object was not available in the transform script. Is this expected or documented? Is there a better way?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/752578"&gt;@Mike Edmonds&lt;/a&gt;&amp;nbsp;of the TMT team?&lt;/P&gt;</description>
    <pubDate>Fri, 16 May 2025 19:24:45 GMT</pubDate>
    <dc:creator>MattSN</dc:creator>
    <dc:date>2025-05-16T19:24:45Z</dc:date>
    <item>
      <title>Service Bridge Transform Current Object?</title>
      <link>https://www.servicenow.com/community/technology-forum/service-bridge-transform-current-object/m-p/3266289#M157</link>
      <description>&lt;P&gt;Hi Service Bridgers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone using the Transforms for Service Bridge know of a way to get the current object or the related task object in a transform?&lt;BR /&gt;Feature Reference:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.servicenow.com/docs/csh?topicname=service-bridge-v2-create-transform.html&amp;amp;version=latest" target="_blank"&gt;https://www.servicenow.com/docs/csh?topicname=service-bridge-v2-create-transform.html&amp;amp;version=latest&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was able to get &lt;STRONG&gt;current.parent.sys_id&lt;/STRONG&gt; in a Service Bridge transform but found that it only worked when the record was intitially synced. Aftwards the "current" object was not available in the transform script. Is this expected or documented? Is there a better way?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/752578"&gt;@Mike Edmonds&lt;/a&gt;&amp;nbsp;of the TMT team?&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 19:24:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/technology-forum/service-bridge-transform-current-object/m-p/3266289#M157</guid>
      <dc:creator>MattSN</dc:creator>
      <dc:date>2025-05-16T19:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Service Bridge Transform Current Object?</title>
      <link>https://www.servicenow.com/community/technology-forum/service-bridge-transform-current-object/m-p/3266320#M158</link>
      <description>&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;object_data&amp;nbsp;&lt;/STRONG&gt;contains the remote task which is essentially &lt;STRONG&gt;current&amp;nbsp;&lt;/STRONG&gt;in a transform.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;object_data.parent &lt;/STRONG&gt;or&lt;STRONG&gt; object_data.parent.sys_id&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 May 2025 20:34:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/technology-forum/service-bridge-transform-current-object/m-p/3266320#M158</guid>
      <dc:creator>Kenny Caldwell</dc:creator>
      <dc:date>2025-05-16T20:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Service Bridge Transform Current Object?</title>
      <link>https://www.servicenow.com/community/technology-forum/service-bridge-transform-current-object/m-p/3268785#M160</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;A href="https://www.servicenow.com/community/user/viewprofilepage/user-id/695866" target="_blank"&gt;@Kenny Caldwell&lt;/A&gt;&amp;nbsp;I have added to the transform a dump of of the object_data object and logged it using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;JSON.stringify(); It contains the fields but every object is empty. Snippt below:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-javascript"&gt;&lt;CODE&gt;object_dump {
"sys_meta": null,
"parent": {},
"made_sla": {},
"watch_list": {},
"consumer_connection": {},
"inbound_vars_json": {},
"upon_reject": {},
......&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 May 2025 13:29:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/technology-forum/service-bridge-transform-current-object/m-p/3268785#M160</guid>
      <dc:creator>MattSN</dc:creator>
      <dc:date>2025-05-20T13:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Service Bridge Transform Current Object?</title>
      <link>https://www.servicenow.com/community/technology-forum/service-bridge-transform-current-object/m-p/3269216#M161</link>
      <description>&lt;P&gt;If you run&amp;nbsp;JSON.stringify(current) against any table you will get the same result. Here is a snippet from running in a business rule on the incident table.&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="Stringify JSON Current.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/443641i51F1E5854B33009E/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Stringify JSON Current.png" alt="Stringify JSON Current.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Here are some examples to try running in the Transform.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note: &lt;/STRONG&gt;Parent does not fully exist until after the remote task has been created. Dot-walking to a parent field will not work when a remote task is first synced and could result in an error. Parent will be the sys_id of the sys_id of the parent. You should perform a check such as&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;object_data.parent.number != &lt;/SPAN&gt;&lt;SPAN&gt;"" &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;before trying to access dot-walked fields.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;gs.info('Object Data - Inbound Vars JSON: ' + object_data.inbound_vars_json);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;gs.info('Object Data - object_data.parent.number: ' + object_data.parent.number);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;gs.info('Object Data - object_data.parent.assignment_group.description: ' + object_data.parent.assignment_group.description);&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 20:39:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/technology-forum/service-bridge-transform-current-object/m-p/3269216#M161</guid>
      <dc:creator>Kenny Caldwell</dc:creator>
      <dc:date>2025-05-20T20:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Service Bridge Transform Current Object?</title>
      <link>https://www.servicenow.com/community/technology-forum/service-bridge-transform-current-object/m-p/3270217#M162</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/695866"&gt;@Kenny Caldwell&lt;/a&gt;&amp;nbsp;for the reminder on the missing data on the JSON blob of the current object and thanks for sharing your examples. This should be a helpful future reference.&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 14:50:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/technology-forum/service-bridge-transform-current-object/m-p/3270217#M162</guid>
      <dc:creator>MattSN</dc:creator>
      <dc:date>2025-05-21T14:50:32Z</dc:date>
    </item>
  </channel>
</rss>

