activities
latest
false
- 概述
- Apple Mail
- AppleNumbers
- Apple 脚本编写
- Excel
- 发行说明
- 关于 Excel 活动包
- 项目兼容性
- 受支持的字符编码
- 项目设置
- 添加或更新 Excel 敏感性标签
- 附加范围
- 自动填充
- 自动调整范围
- 更改透视表数据源
- 清除工作表/范围/表格
- 复制/粘贴范围
- 创建透视表
- 删除列
- 删除行
- 删除工作表
- 复制工作表
- 导出为 CSV
- 填充范围
- 筛选
- 筛选条件透视表
- 查找数据的首行/末行
- 查找/替换值
- 对每个 Excel 行
- 对每个 Excel 工作表
- 格式化为表格
- 设置单元格的格式
- 获取单元格颜色
- 获取 Excel 图表
- 获取 Excel 敏感性标签
- 获取选定范围
- 插入列
- 插入图表
- 插入行
- 插入工作表
- 调用 VBA
- 查找
- “匹配”功能
- 保护工作表
- 读取单元格公式
- 读取单元格值
- 读取范围
- 刷新 Excel 数据连接
- 刷新透视表
- 删除重复项
- 重命名工作表
- 运行电子表格宏
- 保存 Excel 文件
- 将 Excel 文件另存为
- 将 Excel 文件保存为 PDF 格式
- 选择范围
- 范围排序
- 分列
- 取消保护工作表
- 更新 Excel 图表
- 使用 Excel 文件
- VLookup
- 写入单元格
- 写入 CSV
- 将数据表写入 Excel
- Google Workspace
- 发行说明
- 关于“Google Workspace”活动包
- 项目兼容性
- 项目设置
- 将多张工作表合并到一个新的摘要 工作表中
- 新建文件时通过电子邮件通知我
- 在 Gmail 中收到电子邮件时在 Slack 上通知我
- Insert an image into a Google Sheets cell
- 添加参加者
- 创建活动
- 删除活动
- 修改活动
- 搜索活动
- 使用 Google 云端硬盘
- 共享文件
- 删除文件权限
- 获取文件权限
- 更新文件权限
- 复制文件
- 创建文件夹
- 删除文件
- 下载文件
- 查找文件和文件夹
- 获取文件信息
- 移动文件
- 上传文件
- 创建文档
- 创建新电子表格
- 获取邮件消息
- 发送邮件消息
- 更改标签
- 使用 Google 电子表格
- 添加/删除列
- 添加删除行
- 自动填充范围
- 添加新工作表
- 附加行
- 批量电子表格更新
- 复制工作表
- 复制粘贴范围
- 删除范围
- 删除工作表
- 获取单元格颜色
- 获取工作表
- 读取单元格
- 读取列
- 读取范围
- 读取行
- 重命名工作表
- 写入单元格
- 写入范围
- 清除范围
- 下载电子表格
- 使用 Google 文档
- 批量文档更新
- 获取文档
- 获取文本索引
- 插入文本
- 替换文本
- 读取所有文本
- 创建脚本项目
- 获取项目内容
- 上传脚本文件
- 创建部署
- 运行脚本
- 邮件
- Microsoft 365
- 发行说明
- 关于 Microsoft Office 365 活动包
- 项目兼容性
- 项目设置
- Microsoft Office 365 作用域
- 添加工作表
- 附加范围
- 清除范围
- 复制范围
- 复制工作表
- 创建工作簿
- 删除范围
- 删除工作表
- 获取单元格颜色
- 获取工作表
- 读取单元格
- 读取列
- 读取范围
- 读取行
- 重命名工作表
- 写入单元格
- 写入范围
- 设置范围颜色
- 创建表格
- 获取表格范围
- 插入列
- 删除列
- 插入行
- 删除行
- VLookup 范围
- 使用 OneDrive 和 SharePoint
- 复制文件/文件夹
- 创建文件夹
- 删除文件/文件夹
- 下载文件
- 将文件导出为 PDF
- 查找文件和文件夹
- 获取文件/文件夹
- 移动文件/文件夹
- 上传文件
- 共享文件/文件夹
- 遍历每个文件/文件夹
- 转发邮件
- 查找会议时间
- 获取邮件
- 移动邮件
- 发送邮件
- 回复邮件
- 删除邮件
- 设置邮件类别
- 添加附件
- 添加参加者
- 添加地点
- 创建活动
- 删除活动
- 获取日历
- 修改活动
- RSVP
- 搜索活动
- 创建组
- 删除组
- 获取组
- 列出组
- 创建存储桶
- 删除存储桶
- 列出存储桶
- 列出存储桶任务
- 创建计划
- 获取计划
- 列出计划
- 创建任务
- 删除任务
- 获取任务
- 列出任务
- 更新任务
- 遍历列表
- 获取列表信息
- 遍历列表项目
- 删除列表项目
- 添加列表项目
- 更新列表项目
- 获取列表项目
- 身份验证故障排除
- AADSTS50011:重定向 URI 不匹配
- AADTS50076:使用多重身份验证
- AADSTS50079:用户需要使用多重身份验证
- AADSTS500113:没有为应用程序注册回复地址
- AADSTS900971:未提供回复地址
- AADSTS65001:用户或管理员未同意使用该应用程序
- AADSTS65004:用户拒绝同意访问该应用程序
- AADSTS7000218:请求正文必须包含以下参数:client_assertion 或 client_secret
- AADSTS700025:客户端是公开的,因此不应提供“client_assertion”和“client_secret”
- AADSTS70002:InvalidClient - 验证凭据时出错
- AADSTS7000215:提供的客户端密码无效
- AADSTS50055:密码已过期
- AADSTS700082:由于不活动,刷新令牌已过期
- AADSTS50194:应用程序未配置为多租户应用程序
- AADSTS53003:条件访问策略已阻止访问
- 邮件故障排除
- 日历故障排除
- 文件故障排除
- 表格故障排除
- 演示文稿
- Word
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
生产力活动
Summary: Display an image inside a Google Sheets cell using the Google Sheets IMAGE formula and the Write Cell activity.
Applications: Google Sheets
Description: This example explains how to use the Write Cell activity to write the Google Sheets IMAGE formula into a cell, which displays a publicly accessible image directly inside the cell.
备注:
The Google Sheets API does not support inserting images directly into cells. This tutorial shows a workaround using the IMAGE formula, which references a publicly accessible image URL and renders it inside the cell.
工作流
- 打开 Studio Web 并创建一个新项目。
- Add a Write Cell activity to your workflow.
- In the activity, configure the following:
- 设置 Google 表格连接。
- In the Spreadsheet field, browse and select the target spreadsheet.
- In the Sheet/Named range field, select the sheet where you want to insert the image, for example, Sheet1.
- In the Cell field, enter the target cell, for example,
A1. - In the What to write field, enter the IMAGE formula with the publicly accessible URL of your image:
=IMAGE("https://example.com/your-image.png").
- To control how the image fits the cell, add a mode parameter to the formula. The following modes are available:
=IMAGE("url", 1)— Resizes the image to fit inside the cell while maintaining the original aspect ratio. This is the default behavior.=IMAGE("url", 2)— Stretches or compresses the image to fill the cell, ignoring the aspect ratio.=IMAGE("url", 3)— Displays the image at its original size. The image may be cropped if it is larger than the cell.=IMAGE("url", 4, height, width)— Displays the image at a custom size. Replaceheightandwidthwith your desired pixel values, for example:=IMAGE("url", 4, 100, 200).
- 您已完成操作,可以运行项目了!
限制
Keep the following limitations in mind when you use this approach:
- The image URL must be publicly accessible over HTTPS. Images behind authentication or access restrictions are not supported.
- Google Drive images must be publicly shared (set to Anyone with the link can view) for the IMAGE formula to display them. Private Google Drive file links do not work.
- The IMAGE formula adds a dynamic reference to the image URL, not a static embedded object. The displayed image updates if the content at the source URL changes.