Skip to main content

ServiceNow Nice little html table in catalog item description

 ServiceNow html table in catalog item description

<p>This item is for maintenance and additions of Cost Centres </p> <p>The codes covered by this item are between xxxx and zzzz. If the code you are looking to add/update is not within this range please go to one of the following items:&nbsp;</p> <table style="border-collapse: collapse; width: 742px; height: 209px;" border="0" width="743" cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 14.5pt;"> <td style="height: 14.5pt; width: 221pt; font-size: 11pt; color: white; font-weight: bold; font-family: Calibri; border-width: 1pt 1pt 0.5pt; border-style: solid; border-color: windowtext windowtext #8ea9db; background: #4472c4; padding-top: 1px; padding-right: 1px; padding-left: 1px; vertical-align: bottom; border-image: initial; white-space: nowrap;" width="295" height="19">Estate</td> <td style="width: 102pt; font-size: 11pt; color: white; font-weight: bold; font-family: Calibri; border-width: 1pt 1pt 0.5pt; border-style: solid; border-color: windowtext windowtext #8ea9db; background: #4472c4; padding-top: 1px; padding-right: 1px; padding-left: 1px; vertical-align: bottom; border-image: initial; white-space: nowrap;" width="136">Code Range</td> <td style="width: 234pt; font-size: 11pt; color: white; font-weight: bold; font-family: Calibri; border-width: 1pt 1pt 0.5pt; border-style: solid; border-color: windowtext windowtext #8ea9db; background: #4472c4; padding-top: 1px; padding-right: 1px; padding-left: 1px; vertical-align: bottom; border-image: initial; white-space: nowrap;" width="312">Catalogue Item Link</td> </tr> <tr style="height: 14.5pt;"> <td style="height: 14.5pt; font-size: 11pt; font-family: Calibri; border-width: 0.5pt 1pt; border-style: solid; border-color: #8ea9db windowtext; background: #d9e1f2; padding-top: 1px; padding-right: 1px; padding-left: 1px; vertical-align: bottom; border-image: initial; white-space: nowrap;" height="19">item 1</td> <td style="font-size: 11pt; font-family: Calibri; border-width: 0.5pt 1pt; border-style: solid; border-color: #8ea9db windowtext; background: #d9e1f2; padding-top: 1px; padding-right: 1px; padding-left: 1px; vertical-align: bottom; border-image: initial; white-space: nowrap;">1111 - 2222</td> <td style="font-size: 11pt; font-family: Calibri; border-width: 0.5pt 1pt; border-style: solid; border-color: #8ea9db windowtext; background: #d9e1f2; padding-top: 1px; padding-right: 1px; padding-left: 1px; vertical-align: bottom; border-image: initial; white-space: nowrap;"><a title="item 1 Cost Centres" href="https://<instance>.service-now.com/sp?id=sc_cat_item&amp;sys_id=a07f971cdb06b7081b4ffc45ae9xxxxx&amp;sysparm_category=a9c6ff9fdbdad780edfc7cbdae9xxxxx" rel="nofollow">item 1 cost centers</a></td> </tr> <tr style="height: 14.5pt;"> <td style="height: 14.5pt; font-size: 11pt; font-family: Calibri; border-width: 0.5pt 1pt; border-style: solid; border-color: #8ea9db windowtext; background: #d9e1f2; padding-top: 1px; padding-right: 1px; padding-left: 1px; vertical-align: bottom; border-image: initial; white-space: nowrap;" height="19">item 2</td> <td style="font-size: 11pt; font-family: Calibri; border-width: 0.5pt 1pt; border-style: solid; border-color: #8ea9db windowtext; background: #d9e1f2; padding-top: 1px; padding-right: 1px; padding-left: 1px; vertical-align: bottom; border-image: initial; white-space: nowrap;">2222 - 3333</td> <td style="font-size: 11pt; font-family: Calibri; border-width: 0.5pt 1pt; border-style: solid; border-color: #8ea9db windowtext; background: #d9e1f2; padding-top: 1px; padding-right: 1px; padding-left: 1px; vertical-align: bottom; border-image: initial; white-space: nowrap;"><a title="item 1 Cost Centres" href="https://<instance>.service-now.com/sp?id=sc_cat_item&amp;sys_id=a07f971cdb06b7081b4ffc45ae9xxxxz&amp;sysparm_category=a9c6ff9fdbdad780edfc7cbdae9xxxxz" rel="nofollow">item 2 cost centers</a></td> </tr> <tr style="height: 14.5pt;"> <!-- etc etc --> </tr> </tbody> </table>

Comments

Popular posts from this blog

ServiceNow timeout settings for virtual agent chat

  After connecting to live agent User is connected to live agent and not responding to live agent chat or distracted. The below properties controls the timeout settings, the OOB settings for reminder is [180 sec] and for cancelling the chat is [360 sec]. The job is default configured to 2 min so I believe no tweaking is required here.  Property -   com.glide.cs.idle_chat_reminder_timeout                  com.glide.cs.idle_chat_cancel_timeout Scheduled job   - Idle Chat Timer Task   https://community.servicenow.com/community?id=community_article&sys_id=1453b03bdbaad0109e691ea668961929   (ServiceNow ) 

ServiceNow check for null or nil or empty (or not)

Haven't tested these all recently within global/local scopes, so feel free to have a play! option 1 use an encoded query embedded in the GlideRecord , e.g.  var grProf = new GlideRecord ( 'x_cls_clear_skye_i_profile' ); grProf . addQuery ( 'status=1^ owner=NULL ' ); grProf . query (); even better use the glideRecord  addNotNullQuery or addNullQuery option 2 JSUtil.nil / notNil (this might be the most powerful. See this link ) example: if ( current . operation () == 'insert' && JSUtil . notNil ( current . parent ) && ! current . work_effort . nil ())  option 3 there might be times when you need to get inside the GlideRecord and perform the check there, for example if the code goes down 2 optional routes depending on null / not null can use gs.nil : var grAppr = new GlideRecord ( 'sysapproval_approver' ); var grUser = new GlideRecord ( 'sys_user' ); if ( grUser . get ( 'sys_id' , current . approver )){...