跳到主要内容

转变 Json 力求卓越 Power Automate

PDF4me 转变 Json 追求卓越 行动带来智能数据转换 Power Automate 通过自动转换 JSON 将数据结构转换为专业格式的 Excel 电子表格。这项全面的转换服务可将数据转换为…… API 响应、数据库导出和结构化 JSON 将数据导入 Excel 文件,并可自定义格式、数字转换、日期处理和工作表组织,从而实现无缝的数据报告和分析。 Microsoft 365 工作流程。

相关博客文章
目前尚无关于此功能的博客文章——敬请期待。
在此期间,您可以浏览 PDF4me 博客,查看适用于各平台的教程和工作流程。
访问博客 →

验证您的身份 API 要求​

要访问 PDF4me 网站 API 通过 Power Automate每个请求都必须包含正确的身份验证凭据。身份验证可确保通信安全,并验证您作为授权用户的身份,从而实现与您的系统之间的无缝集成。 Power Automate 流量和 PDF4me强大的文档处理服务。

将 JSON 转换为 Excel Power Automate

主要特点​

  • JSON 转换为 Excel:转换结构化 JSON 将数据导入Excel表格
  • 自定义格式配置日期格式、数字格式和标题样式
  • 数据定位控制数据放置的起始行和列
  • 工作表命名自定义 Excel 文件的工作表名称
  • 空值处理:配置清理数据输出的空值行为
  • 自动转换自动检测并转换数字和日期

参数​

Convert 函数的完整参数列表 Json 执行 Excel 操作。配置这些参数以控制数据转换和 Excel 格式设置。

源数据参数​

范围必需的它的作用例子
File ContentRequiredContent of the JSON file to convert. Map it from the file content returned by a previous action, such as SharePoint or OneDrive Get file content.[JSON Data]
File NameRequiredName of the JSON file, including its extension (for example `data.json`).report.xlsx
First RowOptionalRow position from where it should start. Defaults to `0`.2
First ColumnOptionalColumn position from where it should start. Defaults to `0`.1
Worksheet NameOptionalName of the new worksheet in excel. If empty, it will be set as Sheet1. Defaults to `Sheet1`.Sales Data
Convert Number and DateOptionalIf Yes, text values that look like numbers or dates are converted to Excel numbers and dates. Use Date Format and Number Format to control how they are shown. Defaults to `No`.No
Date FormatOptionalFormat for date and time string. check for formats here - https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings.yyyy-MM-dd
Number FormatOptionalFormat for numbers. check for formats here - https://learn.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings.N2
Ignore Null ValuesOptionalIgnore Null Values in json property values. Defaults to `No`.True
Set title to BoldOptionalIf Yes, the title row (the JSON property names) is shown in bold. Defaults to `Yes`.Yes
Wrap Title textOptionalIf Yes, long text in the title row wraps onto several lines instead of being cut off. Defaults to `Yes`.Yes

数据转换参数​

范围必需的它的作用例子
File ContentRequiredContent of the JSON file to convert. Map it from the file content returned by a previous action, such as SharePoint or OneDrive Get file content.@{body('Get_file_content')?['$content']}
File NameRequiredName of the JSON file, including its extension (for example `data.json`).data.json
First RowOptionalRow position from where it should start. Defaults to `0`.0
First ColumnOptionalColumn position from where it should start. Defaults to `0`.0
Worksheet NameOptionalName of the new worksheet in excel. If empty, it will be set as Sheet1. Defaults to `Sheet1`.Sheet1
Convert Number and DateOptionalIf Yes, text values that look like numbers or dates are converted to Excel numbers and dates. Use Date Format and Number Format to control how they are shown. Defaults to `No`.No
Date FormatOptionalFormat for date and time string. check for formats here - https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings.yyyy-MM-dd
Number FormatOptionalFormat for numbers. check for formats here - https://learn.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings.N2
Ignore Null ValuesOptionalIgnore Null Values in json property values. Defaults to `No`.True
Set title to BoldOptionalIf Yes, the title row (the JSON property names) is shown in bold. Defaults to `Yes`.Yes
Wrap Title textOptionalIf Yes, long text in the title row wraps onto several lines instead of being cut off. Defaults to `Yes`.Yes

格式化和显示参数​

范围类型描述例子
忽略空值是/否空值处理
• 真的 - 跳过输出中的空值
• 错误的 - 显示空单元格(表示无值)。
• 实现清晰的数据呈现
• 删除不需要的空条目
True
标题加粗是/否粗体标题行
• 真的 - 将列标题设置为粗体
• 错误的 - 普通重量的接头
• 改善视觉层次结构
• 提高电子表格的可读性
True
标题文本环绕Boolean标题文本换行
• 真的 - 自动换行较长的列标题
• 错误的 单行标题
• 防止头部截断
• 保持列宽效率
True

输出​

这 PDF4me 转变 Json 追求卓越 操作返回全面的输出数据,以实现无缝连接。 Power Automate 流量整合:

表格视图

以结构化表格格式呈现的响应数据:

场地类型它包含什么
File ContentFile contentContent of the resulting Excel workbook. Map it into the next action, for example the File Content field of SharePoint or OneDrive Create file.
File NameTextFile name of the resulting Excel workbook, as returned by PDF4me. Use it as the file name when saving the file.
Page CountTextPage count reported by PDF4me for the processed document. Returned as text; wrap it in int() to use it as a number.

工作流程示例​

这 PDF4me 转变 Json 追求卓越 行动 Power Automate 提供专为实际业务场景设计的全面工作流程模板:

自动化 API 对 Excel 报表工作流程的回应

改变你的 API 自动化数据 JSON 转换为 Excel 格式,用于向利益相关者汇报:

完整工作流程步骤:

  1. 扳机每天早上8点安排晨报
  2. 称呼 API从……检索销售数据 CRM API 端点
  3. 解析 JSON: 提炼 JSON 回复 API 称呼
  4. 转换为 Excel: 转换 JSON 销售数据导入 Excel 表格
  5. 格式应用粗体标题,数字格式(保留两位小数)
  6. 添加图表(可选)使用 Graph 函数创建 Excel 图表 API
  7. 电子邮件报告:通过以下方式向销售团队发送 Excel 报告 Outlook
  8. 档案:将 Excel 报表保存到 SharePoint 报告库

商业优势:

  • 自动生成 50 多名团队成员的每日销售报告
  • 无需手动操作 JSON 转换为 Excel 格式,每天可节省 2 小时
  • 通过自动转换确保报告格式一致
  • 支持对正确输入的 Excel 数据进行数据分析。

行业应用案例及应用​

数据分析与商业智能应用案例

  • API报告将 API JSON 响应转换为 Excel 报表
  • 仪表盘导出将分析仪表板导出到 Excel
  • 数据提取将数据库 JSON 转换为 Excel 文件
  • KPI报告从 JSON 数据生成 Excel KPI 报告

获取帮助​