<?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 Change property value from other application scope in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/change-property-value-from-other-application-scope/m-p/1438745#M95671</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;¿Is possible to change the property values of a custom scoped application from another custom scoped application?&lt;/P&gt;
&lt;P&gt;For example, I have:&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;A custom scoped application, Test, with a property: test.my_property&lt;/LI&gt;&lt;LI&gt;A second custom scoped application, Test2&lt;/LI&gt;&lt;LI&gt;Both of them with ‘Tracking’ as Runtime Access Tracking.&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Now, I go to &lt;SPAN style="font-family: 'andale mono', times;"&gt;the&lt;/SPAN&gt; Scripts – Background and, with the Test2 scope selected, run:&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;gs.setProperty("test.my_property", "new value!");&lt;/P&gt;
&lt;P&gt;But It doesn’t work:&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;Security restricted: Execute operation on API 'Glide API: properties' from scope 'Test2' was granted and added to 'Test2' cross scope privileges&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;Security restricted: Access to property 'test.my_property' from scope 'Test2' has been refused due to the property's cross-scope access policy.&lt;/P&gt;
&lt;P&gt;So, I try to create the cross scope privilege: &lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;Source Scope: Test2&lt;/LI&gt;&lt;LI&gt;Target Scope: Test&lt;/LI&gt;&lt;LI&gt;Target Name: sys_properties&lt;/LI&gt;&lt;LI&gt;Target Type: Table&lt;/LI&gt;&lt;LI&gt;Operation: Write&lt;/LI&gt;&lt;LI&gt;Status: allowed&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;But without success:&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;Security restricted: Access to property 'test.my_property' from scope 'Test2' has been refused due to the property's cross-scope access policy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;¿Suggestions?&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2019 11:25:48 GMT</pubDate>
    <dc:creator>David Berdasco</dc:creator>
    <dc:date>2019-03-25T11:25:48Z</dc:date>
    <item>
      <title>Change property value from other application scope</title>
      <link>https://www.servicenow.com/community/developer-forum/change-property-value-from-other-application-scope/m-p/1438745#M95671</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;¿Is possible to change the property values of a custom scoped application from another custom scoped application?&lt;/P&gt;
&lt;P&gt;For example, I have:&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;A custom scoped application, Test, with a property: test.my_property&lt;/LI&gt;&lt;LI&gt;A second custom scoped application, Test2&lt;/LI&gt;&lt;LI&gt;Both of them with ‘Tracking’ as Runtime Access Tracking.&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Now, I go to &lt;SPAN style="font-family: 'andale mono', times;"&gt;the&lt;/SPAN&gt; Scripts – Background and, with the Test2 scope selected, run:&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;gs.setProperty("test.my_property", "new value!");&lt;/P&gt;
&lt;P&gt;But It doesn’t work:&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;Security restricted: Execute operation on API 'Glide API: properties' from scope 'Test2' was granted and added to 'Test2' cross scope privileges&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;Security restricted: Access to property 'test.my_property' from scope 'Test2' has been refused due to the property's cross-scope access policy.&lt;/P&gt;
&lt;P&gt;So, I try to create the cross scope privilege: &lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;Source Scope: Test2&lt;/LI&gt;&lt;LI&gt;Target Scope: Test&lt;/LI&gt;&lt;LI&gt;Target Name: sys_properties&lt;/LI&gt;&lt;LI&gt;Target Type: Table&lt;/LI&gt;&lt;LI&gt;Operation: Write&lt;/LI&gt;&lt;LI&gt;Status: allowed&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;But without success:&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;Security restricted: Access to property 'test.my_property' from scope 'Test2' has been refused due to the property's cross-scope access policy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;¿Suggestions?&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 11:25:48 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/change-property-value-from-other-application-scope/m-p/1438745#M95671</guid>
      <dc:creator>David Berdasco</dc:creator>
      <dc:date>2019-03-25T11:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Change property value from other application scope</title>
      <link>https://www.servicenow.com/community/developer-forum/change-property-value-from-other-application-scope/m-p/1438746#M95672</link>
      <description>&lt;P&gt;Greetings David,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;The system properties table itself prevents the cross-scope write operation. You would have to change the application - all scopes - write option on the table to directly get around this. To indirectly get around this, you can in your Test application make a 'setProperty' api&amp;nbsp;available to other scopes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Andrew Barnes&lt;BR /&gt;Join me at &lt;A href="https://developer.servicenow.com/blog.do" rel="nofollow"&gt;Developer Blog&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 11:42:59 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/change-property-value-from-other-application-scope/m-p/1438746#M95672</guid>
      <dc:creator>Andrew Barnes -</dc:creator>
      <dc:date>2019-03-25T11:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Change property value from other application scope</title>
      <link>https://www.servicenow.com/community/developer-forum/change-property-value-from-other-application-scope/m-p/1438747#M95673</link>
      <description>&lt;P&gt;Thanks Andrew!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Changing the write option on the table sys_properties still doesn't work (still raises the cross-scope message). But indeed this approach doesn't seem us the best one, so we&amp;nbsp;use your indirect solution and it works fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 08:41:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/change-property-value-from-other-application-scope/m-p/1438747#M95673</guid>
      <dc:creator>David Berdasco</dc:creator>
      <dc:date>2019-03-26T08:41:49Z</dc:date>
    </item>
  </channel>
</rss>

