- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2022 05:01 PM
Hi All,
I have created a button(Function) in the mobile app, When it is clicked a input screen opens up with some set of inputs required by the user along with the adding attachment.
Once it is submitted, I am able to get the values from the input fields but the attachment is not copied over to the record. I have used the below function to add the attachment in the form but it did not work.
actionResult.addAttachment("attach", 'incident',gr.getUniqueValue()); //where "attach" is the input name from above screenshot, and "incident" is the table name (Application - FSM)
Please let me know if i am missing anything
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2022 11:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2022 03:19 PM
You mean through the above process?
Yes it is possible to save attachment in the custom table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2022 09:08 PM
I need help please share me code, in mobile application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2022 04:21 AM
@Pranav Bhagat Can you please help @Hemant19 with this? He is trying to save an image in a custom table using a Mobile Studio.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2022 06:48 AM
Can you give me some insight on how you accomplished this? I'm having this exact issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2022 03:13 AM
actionResult.addAttachment("attach", 'incident',gr.getUniqueValue());
Change gr. getUniqueValue()
Example
var now_gr= new GlideRecord(x_tablename)
actionResult.addAttachment("attach", 'incident',now_gr.getUniqueValue());
Or you can pass sys_id of table