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

Forum Posts

Resolved! Business Rules: Calculated Field Value

Hello, Need help with a Business Rule script to calculate the value of a field based on other fields and calculations. Conditions set in 'When to run'. (function executeRule(current, previous /*null when async*/) { // Add your code here var price ...

Desmo by Mega Guru
  • 2580 Views
  • 3 replies
  • 0 helpfuls

Resolved! Problem should not close unless the problem task is closed

Can you please help me with this.The problem should not be closed/resolved unless the problem task is closed.i had written a before business rule(update)(function executeRule(current, previous /*null when async*/) {       var gr = new GlideRecord('pr...

ursnani by Giga Guru
  • 4994 Views
  • 12 replies
  • 6 helpfuls

Using GlideModal to alert for assignment group change

Hi all, I have a requirement to display a custom alert when the Assignment group is changed to a particular group. We'd like to use GlideModal instead of the standard Javascript alerts to have more flexibility, but it's been a little challenging to f...

Zach3 by Tera Guru
  • 2213 Views
  • 2 replies
  • 2 helpfuls

Service Portal Modal login

We have customised the login widget for the Service Portal modal login, so that ITIL users are redirected to the frameset view. The widget seemed to work fine in Madrid, but stopped working after we upgraded to New York.  I've debugged the code and i...

Colleen by Tera Expert
  • 3047 Views
  • 7 replies
  • 0 helpfuls

Resolved! Flow 'create or update record' not updating

Can someone tell me why the state does not update to 'In Progress' in the Flow? The inbound email triggers the flow OK and the condition action evaluates to TRUE so should set the incident state to In Progress. Thanks,Rich.

find_real_file.png
RichGK1 by Mega Expert
  • 4053 Views
  • 10 replies
  • 1 helpfuls

Resolved! passing value from server script to client/html?

Unable to retrieve the value which is being passed from server script Server script:- data.name = ''; data.email = ''; // get current user email var uemail; var usr = new GlideRecord('sys_user'); usr.addQuery('sys_id', gs.getUserID()); usr.query(...

Prem13 by Tera Contributor
  • 6092 Views
  • 6 replies
  • 1 helpfuls

Service Portal - need help with panels

I'm trying to modify the SC Popular Items widget so it sucks less. See below for what I'm getting when I try to take advantage of pictures:Cutoff pics depending on the length of the title.   I'm not sure what I can do to prevent this, without throwin...

find_real_file.png
Shane J by Tera Guru
  • 4771 Views
  • 17 replies
  • 1 helpfuls

Pass GlideRecord object to function

Hi everyone,   I cannot pass a GlideRecord object to a function in a Script include. Is this normale/ intended behaviour? When I pass the GlideRecord to the object, I can still read the field names using GlideRecordUtil, but the row count is zero and...

Volker1 by Kilo Contributor
  • 3250 Views
  • 2 replies
  • 1 helpfuls

Resolved! Compare two dates of a catalog item (record producer)

Hello, I need to write a simple code to compare starting and ending dates in order to ensure the ending date is greater than the starting one. This applies to a record producer which should be a catalog item at the same time - I have done similar tas...

Milan13 by Giga Expert
  • 2475 Views
  • 3 replies
  • 3 helpfuls

Storing Variable value in Script Include

Hello Everyone, I have created a catalog item with 5 variables: eg, first name, last name, contact, email, and company. I want to store these values in a script include. How to achieve this? Any leads will be appreciated. Regards,Shoheb  

Resolved! how to add users to group using script

like I created a form with two fields user and group when I select a particular user in user field and particular group in group field by clicking on submit button. The user should be added to that group   

SAI ESWAR1 by Kilo Contributor
  • 12942 Views
  • 4 replies
  • 4 helpfuls

Why are client scripts not working in mobile agent?

I have a client script to hide a choice value for a list field depending on the assignment group of a user. The script works fine on desktop but won't work for mobile agent (not classic mobile). I selected "All" for the UI type in the client script c...

Brianlion by Giga Contributor
  • 3425 Views
  • 5 replies
  • 2 helpfuls