<?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 use of the canView() function in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/use-of-the-canview-function/m-p/1906949#M563875</link>
    <description>&lt;P&gt;I am unable to find any documentation on the canView() function in ServiceNow...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i know that in a background script for example i can use rec.canView() &amp;nbsp; to evaluate if the person at the keyboard can view a catalog item.... but does it work for other record classes.. and can i pass any information into the canView() function... for example the ability to pass in a user sid would be GREAT to be able to evaluate if someone else can view things.. this way we can write scripts in the background script module.. test them completely and THEN move them to where they belong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;has anyone seen ANY documentation of the canView() function? i checked all of the scripts on my system and the only time i find it it doesn't pass in any parameters.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2016 15:51:28 GMT</pubDate>
    <dc:creator>randrews</dc:creator>
    <dc:date>2016-10-03T15:51:28Z</dc:date>
    <item>
      <title>use of the canView() function</title>
      <link>https://www.servicenow.com/community/developer-forum/use-of-the-canview-function/m-p/1906949#M563875</link>
      <description>&lt;P&gt;I am unable to find any documentation on the canView() function in ServiceNow...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i know that in a background script for example i can use rec.canView() &amp;nbsp; to evaluate if the person at the keyboard can view a catalog item.... but does it work for other record classes.. and can i pass any information into the canView() function... for example the ability to pass in a user sid would be GREAT to be able to evaluate if someone else can view things.. this way we can write scripts in the background script module.. test them completely and THEN move them to where they belong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;has anyone seen ANY documentation of the canView() function? i checked all of the scripts on my system and the only time i find it it doesn't pass in any parameters.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 15:51:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/use-of-the-canview-function/m-p/1906949#M563875</guid>
      <dc:creator>randrews</dc:creator>
      <dc:date>2016-10-03T15:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: use of the canView() function</title>
      <link>https://www.servicenow.com/community/developer-forum/use-of-the-canview-function/m-p/1906950#M563876</link>
      <description>&lt;P&gt;I don't see it documented on developer.servicenow.com which makes me think it is deprecated. I'm interested to see if anyone of our developers have further information on it.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Oct 2016 15:54:24 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/use-of-the-canview-function/m-p/1906950#M563876</guid>
      <dc:creator>Chuck Tomasi</dc:creator>
      <dc:date>2016-10-03T15:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: use of the canView() function</title>
      <link>https://www.servicenow.com/community/developer-forum/use-of-the-canview-function/m-p/1906951#M563877</link>
      <description>&lt;P&gt;Hi Chuck,&lt;/P&gt;
&lt;P&gt;Did you get any further information on&amp;nbsp;this?&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;have a requirement to hide Catalog Items/Categories in the back-end based on whether or not the Item/Category is available for said user.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Mark&lt;/P&gt;
&lt;P&gt;ps if you wanted more info on the requirement then read on - otherwise don't worry about this bit:&lt;/P&gt;
&lt;P&gt;Category A and Item A are not available for User A who has an itil license.&lt;/P&gt;
&lt;P&gt;User A cannot request these in the Service Portal, however in the back end if viewing sc_category_list.do can see the Category. They can then click into the Category, see information about it and Click into the related Items. They could click into Item A and see all the details of this Catalog Item also.&lt;/P&gt;
&lt;P&gt;We want to prevent that.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 16:17:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/use-of-the-canview-function/m-p/1906951#M563877</guid>
      <dc:creator>Mark233</dc:creator>
      <dc:date>2018-11-08T16:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: use of the canView() function</title>
      <link>https://www.servicenow.com/community/developer-forum/use-of-the-canview-function/m-p/1906952#M563878</link>
      <description>&lt;P&gt;To prevent someone from seeing an item in the list, use an ACL. User Criteria applies to whether or not they can see it in the catalog, not a standard list.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Docs: &lt;A href="https://docs.servicenow.com/bundle/helsinki-servicenow-platform/page/administer/contextual-security/concept/access-control-rules.html" rel="nofollow"&gt;&lt;U&gt;Access control rules&lt;/U&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Docs: &lt;A href="https://docs.servicenow.com/bundle/helsinki-servicenow-platform/page/c2/contextual-security.html" rel="nofollow"&gt;&lt;U&gt;Contextual security&lt;/U&gt;&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 11:57:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/use-of-the-canview-function/m-p/1906952#M563878</guid>
      <dc:creator>Chuck Tomasi</dc:creator>
      <dc:date>2018-11-09T11:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: use of the canView() function</title>
      <link>https://www.servicenow.com/community/developer-forum/use-of-the-canview-function/m-p/1906953#M563879</link>
      <description>&lt;P&gt;Hi Chuck,&lt;/P&gt;
&lt;P&gt;I plan to do so but would like to base the ACL on whether or not the current user&amp;nbsp;can see the Item in the Catalog.&lt;/P&gt;
&lt;P&gt;Do you know if canView() is depreciated as you suspected? If so is there some other method I should be using?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 12:35:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/use-of-the-canview-function/m-p/1906953#M563879</guid>
      <dc:creator>Mark233</dc:creator>
      <dc:date>2018-11-12T12:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: use of the canView() function</title>
      <link>https://www.servicenow.com/community/developer-forum/use-of-the-canview-function/m-p/1906954#M563880</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I have the same issue, and try to figure out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Documentation for "canView" (for the Catalog / not the Items) can be found in the Docs at:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;https://docs.servicenow.com/bundle/london-application-development/page/app-store/dev_portal/API_reference/CatalogJS/concept/CatalogJSScopedAPI.html&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I start working on the "CatItem - Scoped" API, which has a "canViewOnSearch()" function.&lt;/P&gt;
&lt;P&gt;Let me know, if you get somewhat futher, or if this answers your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Dirk&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 10:57:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/use-of-the-canview-function/m-p/1906954#M563880</guid>
      <dc:creator>DirkRedeker</dc:creator>
      <dc:date>2018-12-04T10:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: use of the canView() function</title>
      <link>https://www.servicenow.com/community/developer-forum/use-of-the-canview-function/m-p/1906955#M563881</link>
      <description>Hi
Do you have any update on this? 
If your question is solved, please close this thread by marking an answer as correct and helpful.

BR 
Dirk</description>
      <pubDate>Fri, 21 Aug 2020 15:43:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/use-of-the-canview-function/m-p/1906955#M563881</guid>
      <dc:creator>DirkRedeker</dc:creator>
      <dc:date>2020-08-21T15:43:40Z</dc:date>
    </item>
  </channel>
</rss>

