How to Post Image to Cliq that is a CRM Record Image
I've a custom function that is trying to post data to cliq when a record hits status X. I have a record image and several image attachments.
Scenario: When status = X post to Cliq channel and include record image and image attachments within an inline message card.
1. How to do post a crm record image within a card. (pull record image url)
2. How do I post crm jpg attachments within a message card. (pull attachment urls so they show in a cliq card)
For attachments, I can grab the attachment URL and id via code below but when the image url is added in, nothing shows.
attachments = zoho.crm.getRelatedRecords("Attachments","Module_Parent",recordId);
//This can give me an attachment File_Name ("Attachment_2020-03-30-13-42.jpg")
payload = {"broadcast":"true","text":"Used equipment available","card":{"theme":"modern-inline"},"buttons":{{"label":"View Details","action":{"type":"open.url","data":{"web":"myUrl" + id}}}},"slides":{{"type":"label","title":"*" + name + "*","data":{{"Price":price},{"Category":category},{"Barcode":barcode},{"Serial":serial}}}}};
resp = zoho.cliq.postToChannelAsAdmin(channelName,payload);
Sample message cardAny help appreciated.