01-',2#%34%/'%5'!#$%&' 6#13'!714%/'8'9/&131/#' · PDF file© 2013 ServiceNow All Rights...

38
!"#$ &'()"#$ !*+ ,"'-$.'#) ,*#.$"* !"*/.'"012 31" 4"56*.'- ,"'-$.'#) (1$57)6#$6 !"*/.'"012 !"#"$%& ()*+ ,-."/01- ,2#%3"4%/ %5 !"#"$%& 6#13 !71"4%/ 8 9"/"&131/#

Transcript of 01-',2#%34%/'%5'!#$%&' 6#13'!714%/'8'9/&131/#' · PDF file© 2013 ServiceNow All Rights...

!"#$%&'()"#$%!*+%,"'-$.'#)%,*#.$"*%!"*/.'"012%

31"%4"56*.'-%,"'-$.'#)%(1$57)6#$6%!"*/.'"012%

!"#"$%&'()*+'',-."/01-',2#%3"4%/'%5'!"#"$%&'6#13'!71"4%/'8'9"/"&131/#'

•  8$6*197':1$5%

•  ;<;%#$9%=<;%>"'#?%

•  @"56%A*#':'"5B,.?5%#$9%,*.'C5%

•  86"D%(1$EF7*#:1$%,#G)"%8$6*197':1$%

•  H#G%I':/.:"5%

•  J%K%I%

:";',&1/-"'

L%=<;M%!"*/.'"012%I))%>.F-65%>"5"*/"9% =%

<%27'#1"3'#%-"=>'

•  31"%4"56*.'-%,"'-$.'#)%(1$57)6#$6%=%N"#*5%2.6-%!"*/.'"012%

%

%

•  !"#$%&'()"#$%!*+%,"'-$.'#)%,*#.$"*%=%N"#*5%2.6-%!"*/.'"012%%

L%=<;M%!"*/.'"012%I))%>.F-65%>"5"*/"9% M%

!"#"$%&?@1A21B#'*)*'"/-'C)*'@10"D'

!"*/.'"%(#6#)1F%;<;%

O P"$"*#)%'#6#)1F%'1$'"?65%O Q12%61%'*"#6"%(#6#)1F%86"D5%

O Q12%61%'*"#6"%/#*.#G)"5%O Q12%61%'*"#6"%#$9%#551'.#6"%41*CR125%

!"*/.'"%(#6#)1F%=<;%

O 4-#6S5%$"2%.$%(#)F#*N%

O  A7G).5-.$F%T*1D%6-"%A*197'6%(#6#)1F%

O  >"$9"*.$F%U?:1$5%O  !"#*'-%U?:1$5%O  A*.'.$F%U?:1$5%

O U*9"*%P7.9"5%O  >"V7"56%&#$#F"D"$6%41*CR125%

O 41*CR12%!6#F"5%

L%=<;M%!"*/.'"012%I))%>.F-65%>"5"*/"9% W%

EFDB'"/-'E7F0GB'

•  >"V7"56"9%X1*%•  ()."$6%!'*.?65%1$%Y#*.#G)"%%

!"65%

•  86"D5%1$%6-"%>"V7"56%

•  >"V7"56"9%X1*%I99.:1$#)%9"6#.)5%•  41*CR12%:?5%%

–  >"1*9"*%(1$9.:1$5%–  Z[?#$9%,*#$5.:1$5%%–  A*1?"*:"5%–  41*CR12%/#*.#G)"5%

•  P)1G#)%A*1?"*6N%1$%/#*.#G)"5%•  H.D.6%&#$9#61*N%E")95%2-"$%6"5:$F%

L%=<;M%!"*/.'"012%I))%>.F-65%>"5"*/"9% \%

6#13'!%/H&27"4%/'6/#7%-204%/'

•  A7*?15"]%A*1/.9"%5.D?).E"9%

.$6"*T#'"%T1*%'#6#)1F%

.$5"*:1$5%

•  (1D?1$"$65]%

– ,#G)"%61%'1))"'6%(#6#)1F%86"D%

9"6#.)5%

– @75.$"55%>7)"5%61%?#55%.$T1*D#:1$%

– @#5.'%(#6#)1F%86"D%41*CR12%

L%=<;M%!"*/.'"012%I))%>.F-65%>"5"*/"9% ^%

IJ"3D$1'6#13'!%/H&'K'6#13'L1#"F$B'

•  Z$6"*%G#5.'%.6"D%9"6#.)5%

•  (#6#)1F%86"D%*"T"*"$'"%'*"#6"9%1$%

57GD.55.1$%

L%=<;M%!"*/.'"012%I))%>.F-65%>"5"*/"9% _%

IJ"3D$1'6#13'!%/H&'K'M%7GN%O'L1#"F$B'

•  `"E$"%2-.'-%41*CR12%56"?5%61%?"*T1*D%

•  89"$:TN%F*17?5%61%'#**N%176%21*C%%

L%=<;M%!"*/.'"012%I))%>.F-65%>"5"*/"9% a%

6#13'!%/H&27"4%/'P2BF/1BB'@2$1B'

•  (*"#6"%#$9%7?9#6"%(#6#)1F%86"D5%

•  I99%41*CR12%

•  I99%Y#*.#G)"%!"65%

b%L%=<;M%!"*/.'"012%I))%>.F-65%>"5"*/"9%

6#13'!%/H&27"4%/'M%7GN%O'

•  U$"%41*CR12%2.6-%R"[.G)"%1?:1$5%

•  c5"5%1?:1$5%T*1D%86"D%(1$EF7*#:1$%

9"E$.:1$%61%9"6"*D.$"%56"?5%

L%=<;M%!"*/.'"012%I))%>.F-65%>"5"*/"9% ;<%

Q17.F01'!"#"$%&'()*+':";'*''

!"#$%&'()*'(+)',(-%./01&23%.(4##$5623%.(

(L%=<;M%!"*/.'"012%I))%>.F-65%>"5"*/"9% ;;%

Q17.F01'!"#"$%&'()*+':";'C''

71$8(+,#%&)(-2)2$%0(+)',9(

(L%=<;M%!"*/.'"012%I))%>.F-65%>"5"*/"9% ;=%

Q17.F01'!"#"$%&'()*+':";'(''

!")'.:()*'(+)',(-%./01&23%.(4##$5623%.(

(L%=<;M%!"*/.'"012%I))%>.F-65%>"5"*/"9% ;M%

Q17.F01'!"#"$%&'()*+':";'R''

4::(2(;298()%()*'(<%&8=%>(

(L%=<;M%!"*/.'"012%I))%>.F-65%>"5"*/"9% ;W%

:";'@10"D'

4-#6%.5%6-"%/#)7"%1T%#%5"?#*#6"%6#G)"%61%"$6"*%(#6#)1F%86"D5d%%

U$'"%#%,*#$5T1*D%&#?%.5%'*"#6"9e%G7)C%.D?1*6%.5%5.D?)"%

I99.:1$#)%E")95%'#$%G"%#99"9%#5%6-"%G75.$"55%*"V7.*"5%

41*CR12%'#$%G"%7?9#6"9%G#5"9%1$%G75.$"55%$""9%

L%=<;M%!"*/.'"012%I))%>.F-65%>"5"*/"9% ;\%

S?,'

L%=<;M%!"*/.'"012%I))%>.F-65%>"5"*/"9% ;^%

Q%>MT"#'LF-'<%2'ETF/GU'

!"#$%#&'()*"#+#&,(-.&%-./#,&0(.)&&$12&3$12&4+&41&$%&,(-&"#$/#&+3#&.(()&

;_%

,-.5%.5%-12%2"%2.))%6*#$5T1*D%6-.5%%

#D#f.$F%g$12)"9F";M%"/"$6%.$61%%

#%BD10#"02$"7%g$12)"9F";W%"/"$6%

L%=<;M%!"*/.'"012%I))%>.F-65%>"5"*/"9%

ET"/G'<%2'%

%

31"%4"56*.'-%

,"'-$.'#)%(1$57)6#$6%

!"*/.'"012%h1"+2"56*.'-i5"*/.'"$12+'1D%

%

%

%

!"#$%&'()"#$%

!*+%,"'-$.'#)%,*#.$"*%

!"*/.'"012%5"#$+D'')"#$i5"*/.'"$12+'1D%

%

L%=<;M%!"*/.'"012%I))%>.F-65%>"5"*/"9% ;a%

Lab Guide

!"#$%&"'()*)+,-'./0'12$)3&"2'14*,5)*%,3',6'()*)+,-'7*"5'(#")*%,3'8'9)3)-"5"3*'

':,"';"<*#%&='

!")3'9&(+")3

© 2013 ServiceNow All Rights Reserved Page 1

Service Catalog 301 LABS: In this lab session, attendees learn how to use and maintain an extension to the Service Catalog application that utilizes the power of the ServiceNow platform:

• Lab 1 - For this lab, you explore exactly what the item configuration application consists of, including what tables/business rules and workflow control the automation.

• Lab 2 – For the second lab, you bulk import a prepopulated list of souvenirs into the item configuration table. This simulates the collections of items from a business unit and demonstrates the speed at which this automation can build out a catalog.

• Lab 3 – In the third lab, you extend the base item configuration table to include Recurring Price and Frequency. These additions to the service catalog in Calgary show how this base concept can be extended as the platform and/or your business grows.

• Lab 4 – In the final lab you add an additional task to the item configuration table and update the corresponding workflow to work with the new fields. This again serves to show how this concept is configurable in an easy manner to meet the needs of the business.

Version notes: Lab content was built using the Calgary release of ServiceNow. Operations will likely work in older versions, but this has not been tested.

© 2013 ServiceNow All Rights Reserved Page 2

•  !"#$%&'()%"*+

•  ,-,+."&+/-,+01(.2+

•  31*#+4$.()(1*5672*+."&+6$7(8*+

•  !#19+:%";<'$.)%"+6.=>1+!"#$%&'()%"+

•  ?.=+@()A7)1*+

•  B+C+@+

!"#$%&'()"$

!"#"$%&'()*+),#-./.-"01-2/.-()3"4-

!"#$%&"'()*)+,-'./.'

0 1"2"#)+'&)*)+,-'&,2&"3*4'0 5,6'*,'&#")*"'()*)+,-'7*"84'0 5,6'*,'&#")*"'$)#%)9+"4'0 5,6'*,'&#")*"')2:')44,&%)*"';,#<=,64'

!"#$%&"'()*)+,-'>/.'

0 ;?)*@4'2"6'%2'()+-)#A'0  BC9+%4?%2-'D#,8'*?"'B#,:C&*'()*)+,-'

0  E"2:"#%2-'F3G,24'0  !")#&?'F3G,24'0  B#%&%2-'F3G,24'

0 F#:"#'1C%:"4'0  E"HC"4*'I)2)-"8"2*';,#<=,64'

0 ;,#<=,6'!*)-"4'

© 2013 ServiceNow All Rights Reserved Page 3

!"#$%&'(%!)"*+$%

•  !"#$"%&"'()*+(•  ,-."/&(01+.2&%(*/(34+.45-"((

0"&%(•  6&"7%(*/(&8"(!"#$"%&(•  !"#$"%&"'()*+(9''.:*/4-('"&4.-%(•  ;*+<=*>(:2%((

–  !"*+'"+(,*/'.:*/%(–  ?@24/'(A+4/%.:*/%((–  B+*2"+:"%(–  ;*+<=*>(C4+.45-"%(

•  D-*54-(B+*2"+&E(*/(C4+.45-"%(•  F.7.&(G4/'4&*+E(H"-'%(>8"/(&"%:/I(

!"#$%&'()*+,-.'(%!(",'/+0.'(%

•  !"#$%&'()!#%*+,')&+-$.+/',)+01'#234')2%#)4313.%5)+0&'#6%0&)

•  7%-$%0'01&()– 839.')1%)4%..'41)7313.%5):1'-),'13+.&)

– ;"&+0'&&)<".'&)1%)$3&&)+02%#-36%0)

– ;3&+4)7313.%5):1'-)=%#>?%@)

© 2013 ServiceNow All Rights Reserved Page 4

!"#$%&'()*'$(+,-./(0()*'$(1'*#2&3(

•  !"#$%&'()*+&*#$,&-$#(*.)&•  /(#(.01&2#$,&%$3$%$"+$&+%$(#$-&0"&)4',*))*0"&

!"#$%&'()*'$(+,-./(0(1,234,5(6'*#7&8(

•  !"#$"%&'()'%*+,-.+&%/0"1/%0+%1",2+,3%•  45"$627%8,+91/%0+%):,,7%+90%&+,-%%

© 2013 ServiceNow All Rights Reserved Page 5

!"#$%&'()*+,-.'(%/+01(#00%2+3#0%

•  !"#$%#&$'(&)*($%#&!$%$+,-&.%#/0&•  1((&2,"34,5&•  1((&6$"7$8+#&9#%0&

!"#$%&'()*+,-.'(%/',01'2%

•  !"#$%&'()&*$*+,-$)#.+/0#$&12&"3$•  43#3$&12&"3$5'&6$7,#6$8&"9:;'<2&"$=#9"+2&"$,&$=#,#'6+"#$3,#13$

© 2013 ServiceNow All Rights Reserved Page 6

Lab 1 In this lab, you create a new Catalog Item with the Item Configuration Application and explore the Business Rule and Workflow that controls the item creation process.

Create a New Item

1. Log into your lab instance as admin using the password admin.

2. Navigate to Item Configuration > Item Configurations.

3. Click New.

Explore the Item

Configuration Application

© 2013 ServiceNow All Rights Reserved Page 7

4. Complete the form as follows: Item Name: Red Stapler Category: Office and Print Price: 20.00 Item Description: Great desk accessory Manager Approval: checked Task 1: checked Task 1 Fulfillment Group: Procurement Task 1 Description: Procure and deliver red stapler

5. Right-click the header and Save.

View the Business Rule

1. Right-click the header and select Personalize > Business Rules.

2. Click Item Creation.

3. The Script is well commented. What steps does this Business Rule Perform?

4. Navigate to Item Configuration > Item Configurations.

5. Click Red Stapler to open the record.

© 2013 ServiceNow All Rights Reserved Page 8

View the Catalog Item

1. Click the information decoration next to the Catalog Item.

2. What Workflow is attached to the Catalog Item?

3. What Variable Sets are associated with the Catalog Item?

4. Click Try It.

5. Click Order Now.

6. Click Red Stapler.

7. Under Related Links, click Show Workflow.

8. What is the active Workflow Activity? How does the Workflow utilize information from the Item Configuration?

9. Close the Workflow window.

© 2013 ServiceNow All Rights Reserved Page 9

Lab 2 You have a large number of souvenirs to import to the catalog. Rather than creating each individually, you can use the new Application to bulk import the items.

Load Data Through System Import Sets

1. Download the Excel spreadsheet with the catalog items to import from the link provided on the Live Feed.

2. Navigate to System Import Sets > Load Data.

3. Complete the form as follows: Create new Label: Item Configuration Import Upload an Excel file File: Select the file downloaded in Step 1

Bulk Import Catalog Items

© 2013 ServiceNow All Rights Reserved Page 10

4. Click Go.

5. Under Next steps!, click Create transform map.

6. Complete the form as follows: Name: Item Config Transform Target table: Example Item Config [u_ex_item_config]

7. Click Auto map matching fields. NOTE: you should have 16 mapped fields.

8. Under Related Links, click Transform.

© 2013 ServiceNow All Rights Reserved Page 11

9. Verify Item Config Transform is selected, and click Transform.

10. Navigate to Item Configuration > Item Configurations to see the new items.

© 2013 ServiceNow All Rights Reserved Page 12

Lab 3 The Calgary release of ServiceNow introduces recurring prices. In this lab, you update the Item Configuration Application to allow item creators to supply recurring prices. In addition to adding the new fields, you need to update the Business Rules to account for the new fields.

Add Recurring Price and Frequency Fields

1. Navigate to Item Configuration > Item Configurations.

2. Click New.

3. Right-click the header bar and select Personalize > Form Layout.

4. Under Create new field, complete the fields as follows: Name: Recurring Price Type: Price

5. Click Add.

Extend the Item

Configuration Application

© 2013 ServiceNow All Rights Reserved Page 13

6. Under Create new field, complete the fields as follows: Name: Recurring Frequency Type: Choice

7. Click Add.

8. Move Recurring Price and Recurring Frequency from the bottom of the Selected list so they appear right under Price.

9. Click Save.

10. Right-click the label for Recurring Frequency and select Personalize Dictionary.

© 2013 ServiceNow All Rights Reserved Page 14

11. Update the Dictionary Entry as follows: Choice table: Frequency [sys_frequency] Choice field: Value

12. Click Update.

13. Verify that Recurring Frequency now has values to select.

© 2013 ServiceNow All Rights Reserved Page 15

Update the Item Creation Business Rule

1. Right-click the header bar and select Personalize > Business Rules.

2. Click Item Creation.

3. Challenge: Modify the Script in the Business Rule to map the two new fields to the corresponding fields in the catalog item table. Check the Live Feed for hints if you get stuck.

Create a Business Rule to Update the Catalog Item

1. From the list of Business Rules, click New.

2. Complete the form as follows: Name: Update Item Recurring Price and Freq Update: checked

3. Challenge: Modify the Script in the Business Rule to update the corresponding fields in the catalog item table if these values change. Check the Live Feed for hints if you get stuck.

Test the New Fields

1. Navigate to Item Configuration > Item Configurations.

2. Create a new item with a Recurring Price and Frequency.

3. Verify the values carry over to the Catalog Item record.

4. Update the Recurring Price and Frequency on the Item Configuration table.

5. Verify the values update on the Catalog Item record.

© 2013 ServiceNow All Rights Reserved Page 16

Lab 4 You have some situations where the Catalog Item requires four tasks to be completed rather than just the three currently available in the Item Configuration Application. You need to update the form and the Workflow to allow for an additional task to be created.

Update the Item Configurations Form

1. Navigate to Item Configuration > Item Configurations.

2. Click New.

3. Right-click the header bar and select Personalize > Form Layout.

4. Under Create new field, add the following three fields: Name: Task 4 Type: True/False Name: Task 4 Fulfillment Group Type: Reference Table to Reference: Group [sys_user_group] Name: Task 4 Description Type: String Field Length: Medium (100)

5. Place the new fields under the Task 3 fields.

6. Click Save.

Update the Workflow

Add a Task to the Workflow

© 2013 ServiceNow All Rights Reserved Page 17

1. Navigate to Workflow > Workflow Editor.

2. Click Open and select Basic Catalog Item.

3. Click the Workflow Actions (gear) button and select Checkout.

4. Right-click the If Task 3 Activity and select Copy Activity.

5. Double-click the new Activity to open it.

6. Rename the Activity If Task 4 and update the Script to determine if Task 4 is needed. Check the Live Feed for hints if you get stuck.

7. Click Update.

8. Right-click the Task 4 Activity and select Copy Activity.

9. Double-click the new Activity to open it.

10. Rename the Activity Task 4 and update the Script to set Task 4 Fulfillment Group and Description information. Check the Live Feed for hints if you get stuck.

11. Click Update.

© 2013 ServiceNow All Rights Reserved Page 18

12. Update the Workflow transitions as follows: Remove the connection from If Task 3 | No to End Remove the connection from Task 3 | Always to End Connect If Task 3 | No to If Task 4 Connect If Task 4 | No to End Connect If Task 4 | Yes to Task 4 Connect Task 4 | Always to End

13. Click the Workflow Actions (gear) button and select Publish.

© 2013 ServiceNow All Rights Reserved Page 19

Test the Workflow

1. Navigate to Item Configuration > Item Configurations.

2. Create a new item with a Task 4. NOTE: Tasks 1-3 are not necessary to create a Task 4 for the purpose of this test.

3. Verify the task is created with the appropriate description and Fulfillment Group.

Additional Resources • Service Catalog:

http://wiki.servicenow.com/index.php?title=Introduction_to_Service_Catalog • Creating a Custom Application:

http://wiki.servicenow.com/index.php?title=Creating_a_Custom_Application