Agent Mobile App - Create Ticket: Attachment is not adding to the Incident record

Sashi007
Tera Contributor

Hello,


I'm experiencing an issue in the Agent Mobile App while creating an Incident.


When a user creates an Incident and attaches a file, the Incident is created successfully; however, the attachment is not being associated with the Incident record. The attachment does not appear in the created Incident after submission.


Has anyone encountered this issue before? Are there any specific configurations, permissions, or known limitations related to attachments in the Agent Mobile App that should be verified?

 

Script:

(function WriteBackAction(parm_input, parm_variable) {
//Type appropriate comment here, and begin script below
var gr = new GlideRecord('incident');
gr.initialize();
gr.setValue("caller_id", parm_input.caller_id);
gr.setValue("category", parm_input.category);
gr.setValue("subcategory", parm_input.subcategory);
gr.setValue('urgency', parm_input.urgency);
gr.setValue('short_description', parm_input.short_description);
gr.setValue('description', parm_input.description);
gr.setValue("impact", parm_input.impact);
gr.setValue("assignment_group", parm_input.assignment_group);
gr.setValue("assigned_to", parm_input.assigned_to);
gr.setValue("business_service", parm_input.business_service);
gr.setValue("cmdb_ci", parm_input.cmdb_ci);
gr.setValue("contact_type", "mobileappnew");

if (!gs.nil(parm_input.company))
gr.setValue("company", parm_input.company);

if (gr.insert()) {
gs.addInfoMessage(gs.getMessage('Success! {0} created', gr.getValue("number")));
} else {
gs.addErrorMessage(gs.getMessage('Failure! Incident creation failed.'));
}
})(parm_input, parm_variable);


Any guidance would be appreciated.


Thank you!

Sashi007_0-1781555501112.png

 

 

0 REPLIES 0