Google sheet, I want to add an image and add alter text title to the same image. But when I try to add alter text title, need to refresh the sheet to apply the changes.
Below is my current code:
const sheet = SpreadsheetApp.getActiveSpreadsheet();
const column = sheet.getActiveCell().getColumn();
const row = sheet.getActiveCell().getRow();
const inlineImage = sheet.insertImage(imageUrl, column, row);
inlineImage.setAltTextTitle("some string value");
SpreadsheetApp.flush();