Preview:
id = record.get(columnOrder.indexOf("ID"));
info id;
image_list = List();
///////////////////////// link1 //////////////////////////
link1 = record.get(columnOrder.indexOf("link1"));
if(!isNull(link1))
{
  image_file = invokeurl
  [
    url: link1
    type: GET
  ];
  image_file.setParamName("image");
  image_list.add(image_file);
}
///////////////////////// link2 //////////////////////////
link2 = record.get(columnOrder.indexOf("link2"));
if(!isNull(link2))
{
  image_file = invokeurl
  [
    url: link2
    type: GET
  ];
  image_file.setParamName("image");
  image_list.add(image_file);
  info image_list;
  response = invokeurl
  [
    url : "https://inventory.zoho.com/api/v1/items/" + id + "/images?organization_id=" + organizationID
    type: POST
    files:image_list
    connection:"zohoinventory"
  ];
  info response;
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter