Attachment is not getting added from mobile input screen to the record

sumanpan
Tera Contributor

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

1 ACCEPTED SOLUTION

Hemant19
Kilo Guru
9 REPLIES 9

Hemant19
Kilo Guru

Hi

Try this.script3.PNG

Thanks for you reply, The issue is fixed now, It was a issue with the input variable name.

Hello, is there a way to do this if we have multiple attachment field in the mobile form, and we want to add them to their corresponding field on the table. How to do the mapping ?

Appreciate your help

Hemant19
Kilo Guru

Hi,

please guide me,it is possible attachment save in custom table .