I have the below code which adds an inline image to an email that gets sent from the google sheet. I am working on adding a hyperlink to the inline image. Any guidance on how to achieve this would be appreciated!
var pwcURL2 = DriveApp.getFileById("1C56M6DeZCm9IK5K26Z_ZYNLMb8rdqB4a").getBlob();
var pwcblob = UrlFetchApp
.fetch(pwcURL)
.getBlob()
.setName(pwcblob)
//Some more lines of code in the middle which I have skipped as they are not relevant to the question being asked here
bodypwc = "<img src='cid:pwc' style='width:24px; height:16px;'/>" + bodypwc;
MailApp.sendEmail({
to: currentEmail,
subject: subjectLine,
body: messageBody,
attachments: [liabilityWaiver1,liabilityWaiver2],
htmlBody: messageBody+"<BR/><BR/>"+"<img src=\"cid:sampleImage\">",
inlineImages: {sampleImage: pwcURL2}
});