<?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: how to get records with angularJS in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692762#M349688</link>
    <description>&lt;P&gt;Hi Goran,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I did post my question in community but no one replied.. and code u get from rest Api explorer requires u to pass username &amp;amp; password...problem with our app is that we do not know who is using the app..if we will make request with other user credential then it will log them out.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;i can think of few solutions..&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;1)we can store user password in field type 'password(2way)'.. so in our app we can make a call to script include which will fetch username and password(we can decrypt password(2way) field) and set them in $http call. &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN style="color: #505050;"&gt;&lt;EM&gt;drawback:servicenow doesnt use password(2way) field by default to store password. it uses password(1way) and it is undecipherable. so somehow we neeed to store all passwords in custom field of password(2way) type.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;2)we don't provide any credentials in $http call, let that popup come when they use app for the first time..after we make first REST call..Servicenow will return X-UserToken...we can use that token for sub sequent requests. &lt;EM style="color: #505050;"&gt;drawback: user will have to manually enter username and passoword one time, even though they are already using the instance.&lt;/EM&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Geneva would be much better..in that we can make scripted REST services , and it can be public.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 08 Dec 2015 13:36:38 GMT</pubDate>
    <dc:creator>Rushit Patel2</dc:creator>
    <dc:date>2015-12-08T13:36:38Z</dc:date>
    <item>
      <title>how to get records with angularJS</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692751#M349677</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to clear out the conditions &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; I'm pretty new to servicenow and developing. Coding has always been there in the background all life, but it has never been my main work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to learn how to get angularJS to work like I want and I've been through a lot of tutorials of AngularJS but I havnt found anyone that covers really how to get the information from ServiceNow. all these always put the data in the controller manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when it comes to REST, Im totally new &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've played around abit with the info from &lt;A href="http://www.john-james-andersen.com/blog/service-now/angular-servicenow-tutorial-3-rest-calls.html" title="http://www.john-james-andersen.com/blog/service-now/angular-servicenow-tutorial-3-rest-calls.html"&gt;Angular in ServiceNow: Tutorial #3 - REST Calls-John Andersen&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I get it to work. But since that one requires a input for the tickets to show, I want to know how to make a ui page that shows the records without any manually input calling for the function to get it.. but show all the records that my query is. Im trying this out on my personal dev-instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my dream world I would just take away the function part and use the get right up, but I guess Im missing something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I got.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;UI page:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null"&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;lt;!-- Import AngularJS Library --&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;lt;g:requires name="angular.min.jsdbx" /&amp;gt; &amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;lt;!-- Import my UI Script - get updated timestamp to invalidate cache if script changes --&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;lt;g2:evaluate var="jvar_stamp"&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; var gr = new GlideRecord('sys_ui_script'); &amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; gr.get("e608a7e94fc41600028f7ab28110c748");&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; gr.getValue('sys_updated_on');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;lt;/g2:evaluate&amp;gt; &amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;lt;g:requires name="driftinformation.jsdbx" params="cache=$[jvar_stamp]" /&amp;gt; &amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;lt;!-- The User Interface --&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;lt;div ng-app="descEditor" style='padding:40px;'&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div ng-controller="DescriptionText"&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;!-- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td style='width: 300px; vertical-align: top;'&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;NUMBER&amp;lt;/p&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input ng-model="incnum" ng-change="updateRecordList(incnum);"/&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt; --&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td style='vertical-align: top; padding: 20px; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; background-color: #B2B2B2; width: 200px;'&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div ng-repeat="num in numbers"&amp;gt;{{num.number}}&amp;lt;/div&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;/j:jelly&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;UI Script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var myApp = angular.module('descEditor', []);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;myApp.controller('DescriptionText', [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; '$scope', &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; '$http', &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; function($scope, $http) {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; $scope.incnum = "INC010";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; $scope.url = '/api/now/table/incident';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; $http.defaults.headers.common.Accept = "application/json";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; $http({&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; method: 'GET',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; url: $scope.url + "?sysparm_query=numberSTARTSWITH"+incnum+&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "^ORDERBYDESCnumber"+&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "&amp;amp;sysparm_fields=number&amp;amp;sysparm_limit=25",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; success( function(data, status) {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $scope.numbers = data.result;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; error ( function(data, status) {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $scope.numbers = [{"number": "Error fetching list"}];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;] );&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm hoping someone in the community can point me in the right direction &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 08:27:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692751#M349677</guid>
      <dc:creator>Goran WitchDoc</dc:creator>
      <dc:date>2015-12-01T08:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to get records with angularJS</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692752#M349678</link>
      <description>&lt;P&gt;Hi &lt;STRONG&gt;&lt;A title="" _jive_internal="true" data-avatarid="-1" data-userid="30807" data-username="goranlundqvist" href="https://www.servicenow.com/community?id=community_user_profile&amp;amp;user=eb4f86e5db181fc09c9ffb651f961907"&gt;Göran Lundqvist&lt;/A&gt;&lt;/STRONG&gt;,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Great to see many pepl trying Angular on Service now. to execute any function on Load u need to use this attribute 'data-ng-init'.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;so HTML side looks like this&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;lt;div ng-controller="DescriptionText" data-ng-init="getAllActive()"&amp;gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;And your Controller would look like this. add that method.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;$scope.getAllActive = function(){&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $http({&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; method: 'GET',&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; url: $scope.url + "?sysparm_query=active=true",&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }).&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; success( function(data, status) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $scope.numbers = data.result;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }).&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; error ( function(data, status) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $scope.numbers= [{"number": "Error fetching list"}];&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;it will show all Active Incidents.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I Hope it WOrks for u.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;***mark helpful/like/correct based on impact of reply*****&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Rushit Patel&lt;/P&gt;&lt;BR /&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14489623595717488" data-renderedposition="680_8_1192_0" jivemacro_uid="_14489623595717488"&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;PRE __default_attr="html" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14489623156242683 jive_text_macro" data-renderedposition="680_8_1192_0" jivemacro_uid="_14489623156242683"&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Dec 2015 09:34:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692752#M349678</guid>
      <dc:creator>Rushit Patel2</dc:creator>
      <dc:date>2015-12-01T09:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to get records with angularJS</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692753#M349679</link>
      <description>&lt;P&gt;Thanks alot &lt;A title="rossipatel" __default_attr="41740" __jive_macro_name="user" class="jive-link-profile-small jive_macro jive_macro_user" data-id="41740" data-objecttype="3" data-orig-content="rossipatel" data-renderedposition="10.5_86_80_16" data-type="person" href="https://www.servicenow.com/community?id=community_user_profile&amp;amp;user=c090d22ddb581fc09c9ffb651f961940"&gt;rossipatel&lt;/A&gt; &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I got a couple of follow up questions if you got the time &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;1. &amp;nbsp; I found this earlier &lt;A href="http://servicenowcms.com/angularjs-developing-modern-user-interfaces/" title="http://servicenowcms.com/angularjs-developing-modern-user-interfaces/"&gt;AngularJS: Developing Modern User Interfaces - ServiceNow CMS - Service Portal, CMS, and Custom Apps&lt;/A&gt; &amp;nbsp; and went through that tutorial. And instead of a "http get" they used a script include and get the data through that instead... are there any "pros/cons" for each way?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;2. When I got it to work after your corrections, I got a login-field before I got to the ui page and saw the result. How do I get ride of that?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Dec 2015 17:17:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692753#M349679</guid>
      <dc:creator>Goran WitchDoc</dc:creator>
      <dc:date>2015-12-01T17:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to get records with angularJS</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692754#M349680</link>
      <description>&lt;P&gt;Hi &lt;STRONG style="font-size: 12.6px; font-family: arial, sans-serif; color: #999999;"&gt;&lt;A title="" _jive_internal="true" class="jive-username-link jiveTT-hover-user" data-avatarid="5652" data-externalid="" data-presence="null" data-userid="30807" data-username="goranlundqvist" href="https://www.servicenow.com/community?id=community_user_profile&amp;amp;user=eb4f86e5db181fc09c9ffb651f961907" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #3778c7; text-decoration: underline;"&gt;Göran Lundqvist&lt;/A&gt;&lt;/STRONG&gt;,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;OL&gt;&lt;LI&gt; you can fetch data both ways. but I prefer &amp;nbsp; http service when I am working on angular app. creating script includes for every feature &amp;nbsp; is painful. and also in Geneva we have option of direct UI pages in which we can get completely empty page without servicenow stuff. so in that case Glideajax global object is not available. but advantage of using UI pages with direct option selected is that u only stuff you have written when u see Source of your page(no crapyy stuff that you are not using and can potentially collide with your styles).and I believe direct rest calls using $htttp would be much faster.&lt;/LI&gt;&lt;LI&gt;when you say you are getting login-field as in login page of your instance? in that case go to sys_public.list and create a new record and enter name of your UI page. then u can directly access your UI page without logging in.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;i hope it helps.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Rushit Patel&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Dec 2015 17:24:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692754#M349680</guid>
      <dc:creator>Rushit Patel2</dc:creator>
      <dc:date>2015-12-03T17:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to get records with angularJS</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692755#M349681</link>
      <description>&lt;P&gt;Hi &lt;A title="rossipatel" __default_attr="41740" __jive_macro_name="user" class="jive-link-profile-small jive_macro jive_macro_user" data-id="41740" data-objecttype="3" data-orig-content="rossipatel" data-renderedposition="10.449999809265136_25.10999870300293_79_16" data-type="person" href="https://www.servicenow.com/community?id=community_user_profile&amp;amp;user=c090d22ddb581fc09c9ffb651f961940"&gt;rossipatel&lt;/A&gt;,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Ahh., thanks for clearing nr.1 out &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Not sure about number 2. I don't Think thats the problem. I'm logged in as admin. But the first time I press "try it". I get this.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/197437i51702760EFEF70E5/image-size/large?v=v2&amp;amp;px=999" title="inloggning.GIF" alt="inloggning.GIF" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;After I typed in my admin credentials its doesn't show up again until I quitted my session. So it aint the "real" login screen to the instance I get.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Dec 2015 22:01:22 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692755#M349681</guid>
      <dc:creator>Goran WitchDoc</dc:creator>
      <dc:date>2015-12-03T22:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to get records with angularJS</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692756#M349682</link>
      <description>&lt;P&gt;Hi Goran,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;ahhh....I see the problem. when u are making rest calls to servicenow REST api's u must include basic Authentication or 'X-UserToken' header with correct token.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;so in below code I have included basic authentication. username and password must b encoded so I have included dependency from &lt;A href="https://github.com/ninjatronic/angular-base64" title="https://github.com/ninjatronic/angular-base64"&gt;ninjatronic/angular-base64  · GitHub&lt;/A&gt; .&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;see below code&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;angular.module('todoService',['base64'])&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;.factory('getList', function($http,$base64){&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; var listFactory = {};&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt; var username = 'username';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; var password = 'password';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; var authdata = $base64.encode(username + ':' + password);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp; listFactory.getinc = function(){&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt; &amp;nbsp; return $http.get('&lt;/SPAN&gt;&lt;A title="k-external-small" class="jive-link-external-small" href="https://yourincstace.service-now.com/api/now/table/incident?sysparm_query=active=true&amp;amp;sysparm_fields=number,short_description,state&amp;amp;sysparm_limit=1" rel="nofollow" target="_blank"&gt;https://yourincstace.service-now.com/api/now/table/incident?sysparm_query=active%3Dtrue&amp;amp;sysparm_fields=number%2Cshort_description%2Cstate&amp;amp;sysparm_limit=1&lt;/A&gt;&lt;SPAN&gt;',{&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; headers: {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Authorization' : 'Basic ' + authdata&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; });&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; return listFactory;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; };&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;});&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;I hope it helps.&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;EM&gt;regards,&lt;/EM&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;EM&gt;Rushit Patel&lt;/EM&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Dec 2015 06:52:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692756#M349682</guid>
      <dc:creator>Rushit Patel2</dc:creator>
      <dc:date>2015-12-04T06:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to get records with angularJS</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692757#M349683</link>
      <description>&lt;P&gt;Hmm.. I thought I understood it &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;but I got an error on the URL. Right now Im using admin, but I thought I just do that so I know it isnt any credentials messing around to get it to work. How do you do it otherwise since I guess you dont have admin to do this. Do I create a certain user to use to do the REST-calls?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I also have put down the angular-base64 as a ui script and calls on it with "&lt;/P&gt;&lt;BR /&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&amp;lt;g:requires name="angular-base64.min.jsdbx" /&amp;gt;"&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;var myApp = angular.module('descEditor', ['base64']);&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;myApp.controller('DescriptionText', [&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; '$scope', &lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; '$http', &lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; function($scope, $http, $base64) {&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; $scope.url = '/api/now/table/u_driftinfo';&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; $http.defaults.headers.common.Accept = "application/json";&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; var username = 'admin';&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;var password = 'xxxxxxxxx';&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;var authdata = $base64.encode(username + ':' + password);&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; $scope.getAllActive = function() {&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; $http({&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; method: 'GET',&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; url: $scope.url + "?sysparm_query=u_valid_to&amp;gt;=javascript:gs.daysAgoEnd(0)^ORu_valid_toISEMPTY",{&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; headers: { 'Authorization' : 'Basic ' + authdata }}&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }).&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; success( function(data, status) {&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $scope.numbers = data.result;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }).&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; error ( function(data, status) {&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $scope.numbers = [{"number": "Error fetching list"}];&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; } &amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; $scope.getAllHistory = function() {&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG style="line-height: 1.5;"&gt; &amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; }&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;] );&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 05 Dec 2015 19:06:30 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692757#M349683</guid>
      <dc:creator>Goran WitchDoc</dc:creator>
      <dc:date>2015-12-05T19:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to get records with angularJS</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692758#M349684</link>
      <description>&lt;P&gt;Hi Goran,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;don't forget to add $base64 as shown below.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;myApp.controller('DescriptionText', [&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt; &amp;nbsp; '$scope',&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt; &amp;nbsp; '$http',&lt;STRONG&gt;'$base64',&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt; &amp;nbsp; function($scope, $http, $base64) {&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;and try making simple rest calls without those complicated Query params.&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;now coming to the Making REST calls with which user? is complicated and pain in rear for me. I never made anything for end user so i always used admin credentials. &amp;nbsp; now if u make any user specifically to make rest calls for all users of that app,it will make REST calls but when u navigate away from your UI page and try to open any other record, instance will automatically Log out the User and log in the user u set in REST call. This is Super Wierd. I don't know how people handle this in SNOW. may b someone from community can help.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 06 Dec 2015 08:16:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692758#M349684</guid>
      <dc:creator>Rushit Patel2</dc:creator>
      <dc:date>2015-12-06T08:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to get records with angularJS</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692759#M349685</link>
      <description>&lt;P&gt;Well.. this one Im going to use to publish information on our portal, without demanding a login. I doing this as a UI page on my personal dev since I didnt wanna spend time to set up a portal there. I figured that if I got it to work in a ui page, I could take that xml-code and put it in a dynamic context block and it would work there as well. Am I on the wrong way here? &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;What we are using this for is that we have Service status(I think its called in english). So we can put up outages, pure information, planned service etc. for the end customers.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Dont know if the auth.. stuff will change if I put in in the portal thou, but since the rest-call is made from a ui script I dont think so or?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 06 Dec 2015 16:31:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692759#M349685</guid>
      <dc:creator>Goran WitchDoc</dc:creator>
      <dc:date>2015-12-06T16:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to get records with angularJS</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692760#M349686</link>
      <description>&lt;P&gt;Hi Goran,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;yes if you put your code into into dynamic content blocks it will definitely work however u can not use embedded scripts in that. but problem of making REST calls still persists. so if you make REST calls using admin credentials in script. and now any user comes to portal n when they will come to your dynamic block and if they navigate somewhere else ,their session will automatically end and admin will be automatically logged in.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Let me post question in community.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Dec 2015 15:33:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692760#M349686</guid>
      <dc:creator>Rushit Patel2</dc:creator>
      <dc:date>2015-12-07T15:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to get records with angularJS</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692761#M349687</link>
      <description>&lt;P&gt;Hmm darn...&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I took the "script" part in the ui page and på it in a UI script and called on it as well, and I guess thats the way I can do it.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Im wondering if I get the same "credentials"-problem if I use the code from the rest api explorer? When I look at the code it give me it doesn't look like the one we're using &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Dec 2015 08:03:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692761#M349687</guid>
      <dc:creator>Goran WitchDoc</dc:creator>
      <dc:date>2015-12-08T08:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to get records with angularJS</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692762#M349688</link>
      <description>&lt;P&gt;Hi Goran,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I did post my question in community but no one replied.. and code u get from rest Api explorer requires u to pass username &amp;amp; password...problem with our app is that we do not know who is using the app..if we will make request with other user credential then it will log them out.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;i can think of few solutions..&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;1)we can store user password in field type 'password(2way)'.. so in our app we can make a call to script include which will fetch username and password(we can decrypt password(2way) field) and set them in $http call. &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN style="color: #505050;"&gt;&lt;EM&gt;drawback:servicenow doesnt use password(2way) field by default to store password. it uses password(1way) and it is undecipherable. so somehow we neeed to store all passwords in custom field of password(2way) type.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;2)we don't provide any credentials in $http call, let that popup come when they use app for the first time..after we make first REST call..Servicenow will return X-UserToken...we can use that token for sub sequent requests. &lt;EM style="color: #505050;"&gt;drawback: user will have to manually enter username and passoword one time, even though they are already using the instance.&lt;/EM&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Geneva would be much better..in that we can make scripted REST services , and it can be public.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Dec 2015 13:36:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692762#M349688</guid>
      <dc:creator>Rushit Patel2</dc:creator>
      <dc:date>2015-12-08T13:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to get records with angularJS</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692763#M349689</link>
      <description>&lt;P&gt;Hmm... Sadly I doubt any of those two solution would work for us &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_emote jive_macro" data-renderedposition="7.986111640930176_422.4305725097656_16_16" src="https://www.servicenow.com/8.0.1.35b65d4/images/emoticons/sad.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Wouldnt it be possible to instead of a rest call do a &amp;nbsp; GlideAjax, have it get the objects, make a JSON encode and then in the ui script do a evalJSON to put in the $scope.numbers?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;And the retreat suggestion is go back to jelly and do this inside a g2, and the publish it.. .but I don't wanna do jelly &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_emote jive_macro" data-renderedposition="114.65278625488281_733.5416870117188_16_16" src="https://www.servicenow.com/8.0.1.35b65d4/images/emoticons/sad.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Dec 2015 15:34:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692763#M349689</guid>
      <dc:creator>Goran WitchDoc</dc:creator>
      <dc:date>2015-12-08T15:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to get records with angularJS</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692764#M349690</link>
      <description>&lt;P&gt;Yeah that can also work. thats better than thinking about this authentication n stuff.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;i hope you are aware about this &lt;A href="https://developer.servicenow.com/app.do#!/training/article/app_store_learning_advanced_ui_fuji_c_ModuleAngularJS/app_store_learning_advanced_ui_fuji_c_IntroductionToAngularJS?v=fuji" title="https://developer.servicenow.com/app.do#!/training/article/app_store_learning_advanced_ui_fuji_c_ModuleAngularJS/app_store_learning_advanced_ui_fuji_c_IntroductionToAngularJS?v=fuji"&gt;ServiceNow Developers&lt;/A&gt; . it shows &amp;nbsp; how to fetch data in JSON. &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Dec 2015 15:41:09 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692764#M349690</guid>
      <dc:creator>Rushit Patel2</dc:creator>
      <dc:date>2015-12-08T15:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to get records with angularJS</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692765#M349691</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I need you eyes &lt;A title="rossipatel" __default_attr="41740" __jive_macro_name="user" class="jive-link-profile-small jive_macro jive_macro_user" data-id="41740" data-objecttype="3" data-orig-content="rossipatel" data-renderedposition="52.43055725097656_112.43055725097656_79_16" data-type="person" href="https://www.servicenow.com/community?id=community_user_profile&amp;amp;user=c090d22ddb581fc09c9ffb651f961940"&gt;rossipatel&lt;/A&gt;.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I've got the json to work. But somehow the angular repeat won't work. I've been staring at the code for hours now trying everything but It wont show anything.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I've cut down my code to just get the repeat to work but I doesn't want to..&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;my HTML:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14501892164391166 jive_text_macro" data-renderedposition="219.09722900390625_7.986111640930176_1191_327" jivemacro_uid="_14501892164391166"&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;lt;j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null"&amp;gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;lt;!-- Import AngularJS Library --&amp;gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;g:requires name="angular.min.jsdbx" /&amp;gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;lt;!-- The User Interface --&amp;gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;lt;div ng-app="driftInfo"&amp;gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;lt;div ng-controller="mainController" data-ng-init="getAktuellt()"&amp;gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;lt;div ng-repeat="num in numbers"&amp;gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; Tasknumber: {{ num.number }}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; outside loop {{ testing }}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;&amp;lt;/j:jelly&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The "outside loop" with {{ testing }} is working. But that the only thing showing on my screen as "&lt;SPAN style="color: #343d47; font-family: SourceSansPro, 'Helvetica Neue', Arial; font-size: 13px;"&gt;outside loop DARN show yourself!"&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #343d47; font-family: SourceSansPro, 'Helvetica Neue', Arial; font-size: 13px;"&gt;The alert in the script part(se below) also works, since it popup every short description that I want.. &amp;nbsp; I just cant understand why the ng-repeat wont work..&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #343d47; font-family: SourceSansPro, 'Helvetica Neue', Arial; font-size: 13px;"&gt;Client script:&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14501893589869301 jive_text_macro" data-renderedposition="687.9861450195312_7.986111640930176_1191_451" jivemacro_uid="_14501893589869301"&gt;&lt;P&gt;var app = angular.module("driftInfo",[]);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;app.controller('mainController', ['$scope', function($scope) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; $scope.testing = "DARN show yourself!";&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; $scope.getAktuellt = function () {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var ga = new GlideAjax('getDriftinfo');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; ga.addParam('sysparm_name','getActive');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; ga.getXML(showAktuellt);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; };&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; function showAktuellt(response) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var answer = response.responseXML.documentElement.getAttribute('answer');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; $scope.numbers = angular.fromJson(answer);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; //Just made the for loop to see that I got the correct data&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; for (var i=0; i&amp;lt;$scope.numbers.length; i++) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; alert($scope.numbers[i].short_description);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}]);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Dec 2015 14:23:20 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692765#M349691</guid>
      <dc:creator>Goran WitchDoc</dc:creator>
      <dc:date>2015-12-15T14:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to get records with angularJS</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692766#M349692</link>
      <description>&lt;P&gt;ahhh...i SEE it.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;i guess u need to replace line 19 with &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;$scope.$apply&lt;/STRONG&gt;(function () {&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt; &amp;nbsp; &amp;nbsp; $scope.numbers= angular.fromJson(answer);&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt; &amp;nbsp; &amp;nbsp; alert($scope.ex2Output3);&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt; &amp;nbsp; });&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;reason behing using $scope.apply is that glideAjax &amp;nbsp; and its callback is not part of Angular. so when u try to use somthing angular(for exp like $scope.something = zuzu;) u need to explicity tell it using &lt;STRONG&gt;$scope.apply. &lt;/STRONG&gt;so that it can update the view.&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;perhaps, this &lt;A title="w.sitepoint.com/understanding-angulars-apply-digest/" href="http://www.sitepoint.com/understanding-angulars-apply-digest/"&gt;post &lt;/A&gt;will explain it better. this is why Angular 1 is nightmare for begginers. Angular 2 is going to be much better &lt;SPAN __jive_emoticon_name="grin" __jive_macro_name="emoticon" class="jive_emote jive_macro" data-renderedposition="267.9971618652344_785.2698364257812_16_16" src="https://www.servicenow.com/8.0.1.35b65d4/images/emoticons/grin.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;i havnt tried your code..let me know if it works.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Dec 2015 19:19:02 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692766#M349692</guid>
      <dc:creator>Rushit Patel2</dc:creator>
      <dc:date>2015-12-15T19:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to get records with angularJS</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692767#M349693</link>
      <description>&lt;P&gt;you're good &lt;A title="rossipatel" __default_attr="41740" __jive_macro_name="user" class="jive-link-profile-small jive_macro jive_macro_user" data-id="41740" data-objecttype="3" data-orig-content="rossipatel" data-renderedposition="11_87_80_16" data-type="person" href="https://www.servicenow.com/community?id=community_user_profile&amp;amp;user=c090d22ddb581fc09c9ffb651f961940"&gt;rossipatel&lt;/A&gt; &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_emote jive_macro" data-renderedposition="8_171_16_16" src="https://www.servicenow.com/8.0.1.35b65d4/images/emoticons/happy.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; You made my day again! &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_emote jive_macro" data-renderedposition="29.5_172_16_16" src="https://www.servicenow.com/8.0.1.35b65d4/images/emoticons/happy.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I skipped the Alert($scope.ex2Output3); thou.. It seems &amp;nbsp; kind of weird.. the ex2Output3 thingie&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Now Im going to put it all together again with the rest and see if it goes like I want &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Dec 2015 21:37:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692767#M349693</guid>
      <dc:creator>Goran WitchDoc</dc:creator>
      <dc:date>2015-12-15T21:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to get records with angularJS</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692768#M349694</link>
      <description>&lt;P&gt;&lt;A title="goranlundqvist" __default_attr="30807" __jive_macro_name="user" class="jive-link-profile-small jive_macro jive_macro_user" data-id="30807" data-objecttype="3" data-orig-content="goranlundqvist" data-renderedposition="11.319999694824218_8_110_16" data-type="person" href="https://www.servicenow.com/community?id=community_user_profile&amp;amp;user=eb4f86e5db181fc09c9ffb651f961907"&gt;goranlundqvist&lt;/A&gt;...yeah..Happy to Help &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_emote jive_macro" data-renderedposition="8_260.54998779296875_16_16" src="https://www.servicenow.com/8.0.1.35b65d4/images/emoticons/happy.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Dec 2015 07:22:33 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692768#M349694</guid>
      <dc:creator>Rushit Patel2</dc:creator>
      <dc:date>2015-12-16T07:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to get records with angularJS</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692769#M349695</link>
      <description>&lt;P&gt;Im back )&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks for the help. Now its working like a charm in my persona dev that are in Geneva.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Then ofcourse another problem.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I now did it in our company dev now with fuji and it doesnt seem like the angular wants to work in the portal. I get the tabs, but the angular isnt showing.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;If I put the same code on a UI Page its working.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;And what I find the most strange thing. If I inspect the element with firefox, all the html code is there when the correct data from angular, but it aint rendering on the page... Any clue what I can look for?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Dec 2015 18:49:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692769#M349695</guid>
      <dc:creator>Goran WitchDoc</dc:creator>
      <dc:date>2015-12-22T18:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to get records with angularJS</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692770#M349696</link>
      <description>&lt;P&gt;so where you have used that code? in dynamic content block?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;and when u say angular is not working..so somting like this {name} &amp;nbsp; is displayed?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;and are you getting any error in console of browser?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Dec 2015 18:56:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-records-with-angularjs/m-p/1692770#M349696</guid>
      <dc:creator>Rushit Patel2</dc:creator>
      <dc:date>2015-12-22T18:56:07Z</dc:date>
    </item>
  </channel>
</rss>

