work_notes values is coming empty while trying to create an Incident using Glide Record

kamaldev
Kilo Explorer

var gr = new GlideRecord('incident');

gr.initialize();

gr.short_description='Ticket Account' ;

gr.caller_id=workflow.scratchpad.userFullName;

gr.location=workflow.scratchpad.userLocation;

gr.work_notes='This is a high-priority incident.' ;

gr.insert();

gs.addInfoMessage('Ticket Created');

Here is my script which I have written in a workflow to create a ticket . Everything is getting inserted except the work_notes

Please help out !

11 REPLIES 11

Yes jim . thats true. its getting displayed in activity . thanks a lot



But i wanna show some form data in the incident ticket and short description is not enough for it . please help me ..


You can create a new field of type Journal List that will depend on work notes field.


Is there any other way where i can show the catalog form data in the incident ticket with existing fields ??


So we are getting off topic, but what do you mean exactly by "show the catalog form data in the incident ticket"?



You mentioned in the original post that you are creating the Incident from a Workflow.   I'm going to assume the Workflow is on a particular Catalog Item and you want to show details of the Requested Item on the Incident form.   Is that correct?


hi Jim ,



Yes you are absolutly correct . thats the exact requirement i am working on and short description is not enough for it ..



any leads on where i can show that form info within the existing fields



PS : i mentioned only half details but yes we are on the right path .