Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Attachment Screen Field for Mobile Agent

Narek
Kilo Contributor

Hello all,

 

I am trying to add an Attachments List using System Mobile -> Applets -> my_applet_name -> Details -> New. I set the Type of the Screen field to "Attachments list" and the Record Id Field to a field of type "Reference", that references to a record in sys_attachment table. And even though there are attachments for this record, in the app it says "No attachments" (seethe attachments).

However, I also have Screen Fields of type "Image", with their Form Field set to a field of type "Reference", again, referencing to a field in sys_attachment table. It works perfectly, showing the image(s).

By the way, I am using a server-side script to map my reference field to its corresponding sys_attachment record.

What is the correct way to use Attachment List Screen fields? 

 

Any help would be greatly appreciated. 

Thanks in advance!

1 ACCEPTED SOLUTION

David Ha
ServiceNow Employee
ServiceNow Employee

Hi Narek,

 

Did you follow the steps here on how to configure attachment lists on mobile in New York?


https://developer.servicenow.com/app.do#!/event/devdays19/NY_MOBILE_LAB_DEMODAYS/lab_NY_MOBILE_LAB_D...

 

Best,

David

View solution in original post

7 REPLIES 7

David Ha
ServiceNow Employee
ServiceNow Employee

Hi Narek,

 

Did you follow the steps here on how to configure attachment lists on mobile in New York?


https://developer.servicenow.com/app.do#!/event/devdays19/NY_MOBILE_LAB_DEMODAYS/lab_NY_MOBILE_LAB_D...

 

Best,

David

Narek
Kilo Contributor

Thank you David!

 

The article you attached was what I needed.

 

The problem turned out to be the fact that I didn't use the sys_id of the record in a table for "Record ID Field". That's how the screen field recognizes which records to associate the images with.

 

Thanks again!

Hi, David

The current link is not working for me. Can you please provide new one with actual information about the topic.

Best regards,

Mihail