Skip to content

Commit ae4d7d9

Browse files
Create README.md
1 parent f9a60bc commit ae4d7d9

File tree

1 file changed

+11
-0
lines changed
  • Server-Side Components/Script Includes/Make a script include to extend multiple script includes

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Using Object.Assign method to make a single script include to Extend multiple script includes ExtendMutlipeScriptInclues is a script include which is extending OOTB ArrayUtil and GlideRecordUtil script includes
2+
3+
To test this create an object by initializing ExtendMutlipeScriptInclues and call methods of ArrayUtil and GlideRecordUtil
4+
5+
Example:
6+
7+
var emObj = new ExtendMutlipeScriptInclues(); gs.info(emObj.unique([1, 22, 22, 33, 333, 4, 4, 4, 5, 5])); //unique is a method from ArrayUtil
8+
9+
gs.info(emObj.getGR('incident', 'ed92e8d173d023002728660c4cf6a7bc').number); //getGR is a method from GlideRecordUtil
10+
11+
gs.info(emObj.sayHello()); //sayHello is a method belongs to current script include

0 commit comments

Comments
 (0)