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

Forum Posts

Problems with using g_user on a service portal widget

Hi,Does anyone know a way for me to get a field value off a user form in angular?I have tried using a script action to put the field into the user session data and then used 'g_user.getClientData('field name');' to get the stored field data but this ...

tombennett by Tera Contributor
  • 3933 Views
  • 5 replies
  • 1 helpfuls

Outbound Web Service Basic Authentication issue

Hello everyone,I am testing an outbound Web Service call to a 3rd party application. The web service works fine in SoapUI using "Global HTTP Settings" and WSS-PAssword Type of "PasswordText", but fails with "invalid username or password" using Basic ...

Resolved! Date variables on RITM have corrupted value

Hi,I am having a very difficult time with figuring out what is causing a date variable to sometimes have a corrupted value (in this screenshot, 'Start Date' is a date variable on the catalog item: CMG Provisioning):I opened a ticket with HI support o...

find_real_file.png find_real_file.png
chrisperry by Giga Sage
  • 3701 Views
  • 10 replies
  • 0 helpfuls

Display reference field value into string fields

My script is not working:var one = current.u_group.getDisplayValue();var gr=new GlideRecord('sysapproval_approver');gr.addQuery('document_id', current.sys_id);gr.query();if(gr.next()){gr.u_kb_group=one;gr.update();}

find_real_file.png
Kishore8 by Kilo Guru
  • 5389 Views
  • 25 replies
  • 1 helpfuls

Resolved! Restrict access to specific import sets/data sources

I have created 4 import sets for Asset Managers to bulk import/update assets from a spreadsheet.To give them access to use the import sets on a daily basis, I can give them the import_set_loader and import_transformer roles.But that gives them access...

Resolved! How to write RegExp "or" statement?

I currently have the below business rule that searches the description field to find "Password: xxxxxxxxx" and removes the characters that follow the colon and replaces it with "Password Removed" So If I was to type "Password: TestPW!" the business r...

Resolved! Users unable to attach files to closed incidents

I recently came to our attention that users are unable to add attachments to closed incidents. I checked both client scripts and business rules and found a single client script that was disabling attachments ((BP) Hide Attachment LInk when Closed). I...

Resolved! Is it possible to see the manage attachments code?

There is a button on the header of the OOB incident form "Manage Attachments" i would like to see the code. I don't know what its called in UI actions and i think it is part of the header. Does anyone know where to find the code to this button?

austiin by Giga Contributor
  • 2563 Views
  • 1 replies
  • 1 helpfuls

Dynamic function call in script include

In script include, I want to call method dynamically. eg. in script include I have test1() and test2() are created, now I want to call either test1() / test2. Is there any possibility to call function dynamically in script include? Below is the scrip...

Pradnya6 by Giga Contributor
  • 2478 Views
  • 2 replies
  • 1 helpfuls

Resolved! scheduled reports |omit if no record

Hi,We can scheduled one report and checked omit if no record. If no data in the report it should not send any mail to the users. But it is not working as expected. Mail has been triggered and excel file with no data send to user mail id.can anyone gi...

VRNR by Kilo Contributor
  • 2910 Views
  • 2 replies
  • 2 helpfuls

Any ideas what could be causing this error: JSONObject["short_description"] not found.: org.json.JSONException: JSONObject["short_description"] not found

We upgraded to Jakarta Patch 7, and now some of our forms(order guides) on ServicePortal are not loading. We noticed this error appearing in the error logs:JSONObject["short_description"] not found.: org.json.JSONException: JSONObject["short_descript...

bpolo by Tera Guru
  • 2680 Views
  • 5 replies
  • 1 helpfuls

indexOf in Catalog Client Script

Does the indexOf in Catalog Client Script work?   This should be simple but it seems to fail at this code.   Neither side of the if statement executes and no other code after this executes.   I see no errors in the log.   What am I missing?   It's co...

stevenm by Kilo Guru
  • 2862 Views
  • 4 replies
  • 1 helpfuls