Developer forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Forum Posts

Resolved! Scripting doubt: data.get(xx)

Hello friends,  I'm still crawling in JavaScript, JSON, etc... When working on a workflow, I saw this: var vResult = data.get(18).result;var vErrorMessage = data.get(18).message;current.work_notes = "Mule REST Service Faile. ERROR: " + vErrorMessage;...

Resolved! query sys_history_line with set value from sys_history_set

Hi, Can somebody help with the following query where I use a set value from sys_history_set and try to find all history lines in sys_history_line  var hiset = new GlideRecord('sys_history_set'); hiset.addQuery('id', test_sysid); hiset.query(); while(...

kkronborg by Giga Contributor
  • 2477 Views
  • 4 replies
  • 0 helpfuls

How to calculate 6 months from today

      function onChange(control, oldValue, newValue, isLoading) { if (isLoading || newValue == '') { return; } var today=new Date(); var month_day = new Array(); month_day[0] = "January";month_day[1] = "Feburary";month_day[2] = "March";month_day[3] =...

sonita by Giga Guru
  • 3249 Views
  • 4 replies
  • 1 helpfuls

Resolved! getting string between two characters.

Hello, I have a long string that looks like this, i need to get the email address between < abc@example.com> Can someone help me with this?   var a='abc, def<abc.def@example.com>; ghj, qwe <ghe.qwe@example.com>; bnm, jkl <bnm.jlk@example.com>;';    

Resolved! ServicePortal list showing HTML tags

I am working on a list of knowledge articles. The list is mainly showing two fields. The short description and the beginning of the Costumer solution field( defined as. HTML) When list is shown all Html is shown and it is hardly readable. I have trie...

peterdurup by Mega Contributor
  • 2516 Views
  • 5 replies
  • 0 helpfuls

Resolved! Work notes only for ITIL users

We have a requirement to make a certain group of ITIL users to have write access to only work notes.  I was thinking of giving them an extra role that would prevent them to write to all fields except work notes.  This seems like a lot of ACLs to writ...

Run Script to Add/Delete on Related List

Anyone have any examples of adding/removing items from a related list via a Run Script in a workflow?   I am not finding much in my Google searches and I have a related list on our sys_user records and I wanted to update via a Run Script in a workflo...

Resolved! Restart workflow from UI action?

I have a UI action that reopens the record from a close state to an active state and sets the status back to in progress. I would also like to restart the workflow, can someone show me how that would be written?Workflow Name = ConnectUsWorkflow sys_i...