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.

Add picture added as attachment in Catalog Item To Image field on created by record Record producer

fibssy
Tera Guru

Hi, 

 

I hope anyone can assist me with the requirement below;

 

I have a custom table and a record producer which creates records on this table. On this table I have an Image field on the form.

 

On a portal form,  an Image field can't be created, thus cannot automatically fill the Photo (Image) field on the backend form.
- What could be a solution to automatically fill the Photo field in the backend with an image attached to the portal form via the Add attachment button?

 

fibssy_0-1673351480697.png

 

2 REPLIES 2

Harshad Wagh
Tera Guru

1.create a variable of type attachment on record producer

2.Map that variable to the "Photo" field of your table.

 

Thanks

Harshad

Thank you for your quick response. I just tried this and it doesn't work. I am able to upload the image, but it doesn't appear on the form in the Photo field. I can see the image in the sys_attachment table.