<?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 Dot walking from HR Task to HR Case (current.parent.subject_person.u_pay_grade). in HRSD forum</title>
    <link>https://www.servicenow.com/community/hrsd-forum/dot-walking-from-hr-task-to-hr-case-current-parent-subject/m-p/2350566#M26609</link>
    <description>&lt;P&gt;I have an HR Case, inside that there is an HR task. The HR Task has a field called "Parent" which references the corresponding HR case record. The HR case has a field called "Subject Person" which references a records from a table "HR Profile" with field "Pay Grade".&lt;/P&gt;&lt;P&gt;I want to dot walk in script from HR Task's Parent to HR Profile's "Pay Grade".&lt;/P&gt;&lt;P&gt;In order to do that I am writing the following script "current.parent.subject_person.u_pay_grade". Checked this using gs.log(), but it turns out that this line is getting skipped.&lt;/P&gt;&lt;P&gt;But I am not getting any results. I tried to even dot walk in the Condition Builder, but still I did not get my desired result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any workaround for this?&lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2022 10:47:39 GMT</pubDate>
    <dc:creator>Harsh _</dc:creator>
    <dc:date>2022-10-13T10:47:39Z</dc:date>
    <item>
      <title>Dot walking from HR Task to HR Case (current.parent.subject_person.u_pay_grade).</title>
      <link>https://www.servicenow.com/community/hrsd-forum/dot-walking-from-hr-task-to-hr-case-current-parent-subject/m-p/2350566#M26609</link>
      <description>&lt;P&gt;I have an HR Case, inside that there is an HR task. The HR Task has a field called "Parent" which references the corresponding HR case record. The HR case has a field called "Subject Person" which references a records from a table "HR Profile" with field "Pay Grade".&lt;/P&gt;&lt;P&gt;I want to dot walk in script from HR Task's Parent to HR Profile's "Pay Grade".&lt;/P&gt;&lt;P&gt;In order to do that I am writing the following script "current.parent.subject_person.u_pay_grade". Checked this using gs.log(), but it turns out that this line is getting skipped.&lt;/P&gt;&lt;P&gt;But I am not getting any results. I tried to even dot walk in the Condition Builder, but still I did not get my desired result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any workaround for this?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 10:47:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/dot-walking-from-hr-task-to-hr-case-current-parent-subject/m-p/2350566#M26609</guid>
      <dc:creator>Harsh _</dc:creator>
      <dc:date>2022-10-13T10:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dot walking from HR Task to HR Case (current.parent.subject_person.u_pay_grade).</title>
      <link>https://www.servicenow.com/community/hrsd-forum/dot-walking-from-hr-task-to-hr-case-current-parent-subject/m-p/2350593#M26610</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/92083"&gt;@Harsh _&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here direct dot walking wont work because of 2 reasons:&lt;/P&gt;&lt;P&gt;1. Parent field on HR Task refers to 'task' table and not HR Case table&lt;/P&gt;&lt;P&gt;2. Subject Person field on HR Case refers to 'sys_user' table and not HR Profile table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In HR Case, there is different field called "Subject Person HR Profile" which refer to HR profile of Subject Person which we can use.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try below dot-walking for your requirement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;parent.ref_sn_hr_core_case.subject_person_hr_profile.u_pay_grade&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 11:03:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/dot-walking-from-hr-task-to-hr-case-current-parent-subject/m-p/2350593#M26610</guid>
      <dc:creator>anubhavritolia</dc:creator>
      <dc:date>2022-10-13T11:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dot walking from HR Task to HR Case (current.parent.subject_person.u_pay_grade).</title>
      <link>https://www.servicenow.com/community/hrsd-forum/dot-walking-from-hr-task-to-hr-case-current-parent-subject/m-p/2352799#M26623</link>
      <description>&lt;P&gt;Please try the following code.&amp;nbsp; It shall works:&lt;/P&gt;&lt;P&gt;var grade = new GlideRecord('sn_hr_core_profile');&lt;BR /&gt;grade.addQuery('user', current.parent.subject_person);&lt;BR /&gt;grade.query();&lt;/P&gt;&lt;P&gt;while (grade.next())&lt;BR /&gt;gs.addInfoMessage("My pay Grade is " + grade.u_pay_grade);&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohnZhang1_0-1665769927897.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/209348i177698DB78FE3B19/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohnZhang1_0-1665769927897.png" alt="JohnZhang1_0-1665769927897.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 17:52:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/dot-walking-from-hr-task-to-hr-case-current-parent-subject/m-p/2352799#M26623</guid>
      <dc:creator>John Zhang1</dc:creator>
      <dc:date>2022-10-14T17:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dot walking from HR Task to HR Case (current.parent.subject_person.u_pay_grade).</title>
      <link>https://www.servicenow.com/community/hrsd-forum/dot-walking-from-hr-task-to-hr-case-current-parent-subject/m-p/2354767#M26652</link>
      <description>&lt;P&gt;Hi Harsh,&lt;/P&gt;&lt;P&gt;Does my answer help you?&amp;nbsp; If it is helpful/correct, can you mark correct/helpful?&amp;nbsp; This will help us to review similar questions.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 19:40:29 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/dot-walking-from-hr-task-to-hr-case-current-parent-subject/m-p/2354767#M26652</guid>
      <dc:creator>John Zhang1</dc:creator>
      <dc:date>2022-10-17T19:40:29Z</dc:date>
    </item>
  </channel>
</rss>

