We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84e0ab8 commit 2ade88bCopy full SHA for 2ade88b
Script Includes/GetCallerDetails/scriptinclude.js
@@ -0,0 +1,14 @@
1
+var GetCallerDetails = Class.create(); // This will create a new class.
2
+GetCallerDetails.prototype = Object.extendsObject(AbstractAjaxProcessor, {
3
+ demoTest:function(){
4
+ var caller = this.getParameter('sysparm_caller_id'); // this will make the instance for caller id
5
+ var user = new GlideRecord('sys_user');
6
+ user.addQuery('sys_id',caller); // This will query the parameter, if exist
7
+ user.query();
8
+ if(user.next()){ // If user found
9
+ return "Email Id: " + user.email + "\n" + "First Name " + user.first_name + "\n" + "Last Name: " + user.last_name + "\n" + "User Id: " + user.user_name;
10
+ }
11
+ },
12
+
13
+ type: 'GetCallerDetails'
14
+});
0 commit comments