<?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 Re: Business Rule to update Work Notes from a scoped application in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/business-rule-to-update-work-notes-from-a-scoped-application/m-p/2936234#M1114770</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/418622"&gt;@maryam7&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;its better to store location value inside a variable.&lt;/P&gt;&lt;P&gt;you can use below code in your BR to get and set value of work_notes.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;current.work_notes.getJournalEntry(-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;); // to get work notes value.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;current.work_notes.setJournalEntry(variableName) // to set work notes value.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Keshav K&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 20 May 2024 06:43:32 GMT</pubDate>
    <dc:creator>keshavgowda</dc:creator>
    <dc:date>2024-05-20T06:43:32Z</dc:date>
    <item>
      <title>Business Rule to update Work Notes from a scoped application</title>
      <link>https://www.servicenow.com/community/developer-forum/business-rule-to-update-work-notes-from-a-scoped-application/m-p/1571422#M228348</link>
      <description>&lt;P&gt;Hi team. I have created a record producer in a scoped application that updates a custom field called additional_details. I have been asked to copy everything from the additional_details into Work Notes when the record is created. I figured I would just create a Business Rule that ran on insert to copy additional_details to work_notes. However, when this didn't work, I found an article or doc explaining you can't acheive this across scopes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;How else can I copy additional_details to work_notes?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I've tried creating a Cross scope privilege record from my scope to global (table \ task \ write \ approved), but that didn't work&lt;/P&gt;
&lt;P&gt;I tried direct from the script field where I set the additional_details field&lt;/P&gt;
&lt;P&gt;I can get it to work via an onChange Client Script, however, it doesn't work when the record is created&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 14:10:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/business-rule-to-update-work-notes-from-a-scoped-application/m-p/1571422#M228348</guid>
      <dc:creator>Wayne Richmond</dc:creator>
      <dc:date>2022-07-18T14:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Business Rule to update Work Notes from a scoped application</title>
      <link>https://www.servicenow.com/community/developer-forum/business-rule-to-update-work-notes-from-a-scoped-application/m-p/1571423#M228349</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Can you share what script did you try with BR.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 14:18:24 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/business-rule-to-update-work-notes-from-a-scoped-application/m-p/1571423#M228349</guid>
      <dc:creator>SumanthDosapati</dc:creator>
      <dc:date>2022-07-18T14:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Business Rule to update Work Notes from a scoped application</title>
      <link>https://www.servicenow.com/community/developer-forum/business-rule-to-update-work-notes-from-a-scoped-application/m-p/1571424#M228350</link>
      <description>&lt;P&gt;Sure, although I'd hardly call it a script!&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;(function executeRule(current, previous /*null when async*/) {

	current.work_notes = current.additional_details;

})(current, previous);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When: before (have also tried after)&lt;/P&gt;
&lt;P&gt;Insert: true (also tried Update)&lt;/P&gt;
&lt;P&gt;If you try and use filter conditions, work_notes isn't available&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 14:39:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/business-rule-to-update-work-notes-from-a-scoped-application/m-p/1571424#M228350</guid>
      <dc:creator>Wayne Richmond</dc:creator>
      <dc:date>2022-07-18T14:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Business Rule to update Work Notes from a scoped application</title>
      <link>https://www.servicenow.com/community/developer-forum/business-rule-to-update-work-notes-from-a-scoped-application/m-p/1571425#M228351</link>
      <description>&lt;P&gt;This &lt;A href="https://community.servicenow.com/community?id=community_question&amp;amp;sys_id=72e603e5db1cdbc01dcaf3231f961915" target="_blank" rel="noopener"&gt;link&lt;/A&gt; might help you. It has different requirement but that should probably solve the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Sumanth&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 08:01:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/business-rule-to-update-work-notes-from-a-scoped-application/m-p/1571425#M228351</guid>
      <dc:creator>SumanthDosapati</dc:creator>
      <dc:date>2022-07-19T08:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Business Rule to update Work Notes from a scoped application</title>
      <link>https://www.servicenow.com/community/developer-forum/business-rule-to-update-work-notes-from-a-scoped-application/m-p/1571426#M228352</link>
      <description>&lt;P&gt;I got this working in the end via a Business Rule, I just had to change the "script":&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;(function executeRule(current, previous /*null when async*/) {

	current.work_notes.setDisplayValue(current.additional_details);

})(current, previous);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 13:05:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/business-rule-to-update-work-notes-from-a-scoped-application/m-p/1571426#M228352</guid>
      <dc:creator>Wayne Richmond</dc:creator>
      <dc:date>2022-07-20T13:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Business Rule to update Work Notes from a scoped application</title>
      <link>https://www.servicenow.com/community/developer-forum/business-rule-to-update-work-notes-from-a-scoped-application/m-p/2358896#M923869</link>
      <description>&lt;P&gt;Hi all , I write this BR for location field but show me the sys_id of location in work note . can you help me please .&lt;/P&gt;&lt;P&gt;(function executeRule(current, previous /*null when async*/) {&lt;/P&gt;&lt;P&gt;current.work_notes.setDisplayValue(current.location.toString());&lt;/P&gt;&lt;P&gt;})(current, previous);&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 14:08:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/business-rule-to-update-work-notes-from-a-scoped-application/m-p/2358896#M923869</guid>
      <dc:creator>maryam7</dc:creator>
      <dc:date>2022-10-20T14:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Business Rule to update Work Notes from a scoped application</title>
      <link>https://www.servicenow.com/community/developer-forum/business-rule-to-update-work-notes-from-a-scoped-application/m-p/2936234#M1114770</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/418622"&gt;@maryam7&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;its better to store location value inside a variable.&lt;/P&gt;&lt;P&gt;you can use below code in your BR to get and set value of work_notes.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;current.work_notes.getJournalEntry(-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;); // to get work notes value.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;current.work_notes.setJournalEntry(variableName) // to set work notes value.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Keshav K&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 May 2024 06:43:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/business-rule-to-update-work-notes-from-a-scoped-application/m-p/2936234#M1114770</guid>
      <dc:creator>keshavgowda</dc:creator>
      <dc:date>2024-05-20T06:43:32Z</dc:date>
    </item>
  </channel>
</rss>

