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

Forum Posts

Transform Map with condition

I am trying transform map for cmdb_rel_ci . however, I would like to map Child ci from only "windows Server" or "Linux Server" class and NOT from Vmware instance or Nutanix virtual machine instance where you might find the same ci name.How do I do th...

kironk by Tera Contributor
  • 1502 Views
  • 3 replies
  • 1 helpfuls

Impersonation in scoped application

Hi,Is there a way to impersonate a user through script in scoped application.I tried impersonating using both the apis gs.getSession().impersonate and GlideImpersonate but getting error as these functions work only in global scope. Thanks

deepak50 by Tera Contributor
  • 3316 Views
  • 7 replies
  • 1 helpfuls

How to use variable in encoded query?

I don't want to use the hardcoded value of SYS ID in the script. How to store Sys ID and use it in the encoded query in widget?    if (input && input.action == 'submit' && ritmGr.get(ritmSysId)) { var cbt = input.prefTime; ritmGr.variables.preferre...

Admin7267 by Kilo Sage
  • 1529 Views
  • 2 replies
  • 1 helpfuls

ACL's based on a condition

I want everyone to be able to write to the table if status != Pending, but only a certain amount of people to be able to write if status = Pending.My ACLs so far (which works)table write status!=pending and role = role_atable write status=pending and...

kemmy1 by Tera Guru
  • 1371 Views
  • 2 replies
  • 0 helpfuls

Resolved! How to convert Date and time into date

Hi all,Can anyone tell me why the dates are unequal and how can I convert this dateTime into time so that the both dates will be equal.          var val = '';          var date = new GlideRecord('question_answer');          date.addQuery('sys_id', '7...

PrathameshCha1_0-1698675653400.png