servicenow-docs.pdf - ServiceNow Documentation...

Info icon This preview shows pages 1–12. Sign up to view the full content.

View Full Document Right Arrow Icon
ServiceNow Documentation Documentation Release 0.01 Mark Carter Nov 13, 2017
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
Contents 1 Copying Data 3 1.1 Worknotes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.2 Currency Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2 CORS Error 5 2.1 How to get around CORS Exception . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3 Date Time Servicenow 7 3.1 Update Review Date . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3.2 Comparing Due Date with Start Date . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3.3 Comparing Months . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3.4 Comparing Dates when days doesn’t matter (untested) . . . . . . . . . . . . . . . . . . . . . . . . . 8 4 Design Resources 9 4.1 Icon Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 4.2 Instance Style Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 5 Emails 11 5.1 Parsing out Hidden Watermarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 6 GlideAjax 13 6.1 Returning multiple values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 7 Glide Conditionals 15 7.1 Matching records using conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 8 Hiding non-readable Rows in List View 17 8.1 Separating Readable Projects By Department . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 9 Metrics 21 9.1 Metric from Assignment Group to Close . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 10 Modules 23 10.1 Open new window from module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 11 OAuth 25 11.1 Manual Oauth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 i
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
12 Reference Qualifiers 27 12.1 Creating a Dynamic Qualifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 12.2 Qualifier that uses multiple queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 13 RegEx 29 13.1 Replace with callback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 13.2 Example 2: replace <<EMPLOYEE>> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 14 REST Message v2 31 14.1 External Cart Orders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 15 Sending Attachments via REST 33 15.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 15.2 Staging Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 15.3 Create a Transform Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 15.4 Sending the REST Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 15.5 Example Business Rule Script for Attachment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 16 Service Portal 37 16.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 16.2 Understanding How Server Script Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 17 Sphinx Shortcuts 41 17.1 Sphinx codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 18 Syntax Editor 43 18.1 Location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 19 Time Card Modifications 45 19.1 Generate Time Cards based on Resource Allocations . . . . . . . . . . . . . . . . . . . . . . . . . . 45 20 UI Pages 49 20.1 Triggering on change for select box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 20.2 Using a passed parameter in HTML field . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 20.3 Using a passed parameter in the Client field . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 21 Working With Variable Sets 51 21.1 Variable Iteration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 22 Workflows 53 22.1 Canceling and Reopening Workflow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 22.2 Sending in workflow values with StartFlow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 23 Indices and tables 55 ii
Image of page 4
ServiceNow Documentation Documentation, Release 0.01 Contents: Contents 1
Image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
ServiceNow Documentation Documentation, Release 0.01 2 Contents
Image of page 6
CHAPTER 1 Copying Data 1.1 Worknotes Copying the full set of work notes to another area //Gets all worknotes associated with current var notes = current.work_notes.getJournalEntry( - 1 ); var newNotes = "Copied notes ::\n" + notes; 1.2 Currency Fields Copying old funds in current to new funds in another field bCase.new_funds = bCase.new_funds.getReferenceCurrencyCode() + ';' + current.old_ ˓ funds.getReferenceValue(); 3
Image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
ServiceNow Documentation Documentation, Release 0.01 4 Chapter 1. Copying Data
Image of page 8
CHAPTER 2 CORS Error 2.1 How to get around CORS Exception chrome.exe --user-data-dir= "C:/Chrome dev session" --disable-web-security Depending on location of Chrome, file can be run with single line below "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --user-data-dir= "C:/ ˓ Chrome dev session" --disable-web-security Warning: Goes without saying !! be careful of security 5
Image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
ServiceNow Documentation Documentation, Release 0.01 6 Chapter 2. CORS Error
Image of page 10
CHAPTER 3 Date Time Servicenow 3.1 Update Review Date ( function executeRule(current, previous / * null when async * / ) { var gdt = new GlideDateTime(current.ends); gdt.addDays( 90 ); current.u_review_date_custom = gdt; })(current, previous); Warning: .addDays() will addDays to the time, but does not return a glideDateTime
Image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 12
This is the end of the preview. Sign up to access the rest of the document.
  • Winter '18
  • Dr. Charles Abiodun Robert, PhD
  • United States bankruptcy law, Bankruptcy in the United States, ServiceNow Documentation Documentation

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern