Power Platform

Power Apps 用户自定义函数 GA 正式发布:生产可用

3分钟阅读

摘要

Power Apps 的用户自定义函数(UDFs)已正式 GA,意味着该能力不再只是预览,而是可安全用于生产环境,帮助大型 Canvas 应用将重复公式抽离为可复用函数,提升一致性、可维护性与 Studio 加载/保存性能。此次更新还在 2508.3 版本中移除了独立预览开关,并将 UDFs 绑定到默认启用的新分析引擎,这对 makers、IT 管理员和支持团队都很重要,因为它关系到应用治理、旧应用配置以及后续重构策略。

需要Power Platform方面的帮助?咨询专家

引言

Power Apps 中的用户自定义函数(UDFs)现已 正式发布(GA)——这对构建大型 Canvas 应用的组织而言是一个重要里程碑。在这些应用中,重复公式、逻辑不一致以及性能瓶颈,常常会拖慢制作者(makers)与支持团队的效率。GA 也意味着 UDFs 已可用于 生产工作负载,从而成为企业级应用模式与开发治理中的可行标准能力。

有哪些新变化

UDFs 已 GA,可用于生产环境

UDFs 允许 makers 将可复用的函数定义一次,并在整个应用中调用,从而提升可维护性并减少公式重复。

版本 2508.3:移除预览开关

Power Apps 版本 2508.3 起,Microsoft 移除了此前的 UDF 预览开关。取而代之的是,UDF 支持现与 新分析引擎(new analysis engine) 绑定。

与新分析引擎的合并设置

由于 UDFs 依赖新分析引擎,Microsoft 将相关体验进行了合并:

  • 新分析引擎 开关(位于 New 部分)现在 包含 UDFs
  • 该开关在 新建应用中默认启用

对 makers 与支持团队的关键收益

UDFs 通过模块化方式帮助团队扩展应用复杂度:

  • 复用与一致性: 将通用逻辑提取为带参数的单一函数,避免同一逻辑出现多个版本并逐渐偏离。
  • 更好的可读性与测试: UDF 可被独立理解与验证,而不是分散嵌入在大量控件属性中。
  • 改善 Studio 性能: Microsoft 指出,UDFs 通过减少遍布应用的重复逻辑,有助于 Studio 更快加载与保存应用

UDFs 可以是:

  • 纯计算函数(例如将华氏度转换为摄氏度)
  • 带副作用的操作函数(包裹在 { } 中),例如收集数据并显示通知

对 IT 管理员与终端用户的影响

对 IT 管理员与平台负责人:

  • 治理与标准化: UDFs 提供可执行的路径,以在应用间实现一致的逻辑模式,提升长期可支持性。
  • 应用生命周期管理: 更模块化的公式可在更新、故障排查以及 makers 交接过程中降低风险。
  • 功能配置认知: 由于 UDFs 依赖 新分析引擎,管理员应确保 makers 理解哪些设置会影响可用性——尤其是在处理旧应用时。

对终端用户:

  • 随着应用减少重复计算并提高可维护性,用户可期待 更一致的应用行为,并可能获得更好的响应速度。

行动项 / 下一步

  • 确认版本与设置: 验证环境与 makers 使用的构建版本符合 2508.3,并理解 UDFs 依赖 新分析引擎 开关。
  • 更新内部 maker 指南: 将 UDF 模式加入你的 Center of Excellence 文档(命名规范、参数模式、批准的辅助函数库)。
  • 重构高价值应用: 识别包含重复公式的应用,并重构为 UDFs,以减少重复并简化维护。
  • 关注下一里程碑: Microsoft 表示 用户自定义类型(UDTs)——用于在 UDFs 输入/输出记录或表——仍在推进中,预计很快也将 GA。

如需更多实现细节,请参考 Power Apps 关于用户自定义函数的官方文档。

需要Power Platform方面的帮助?

我们的专家可以帮助您实施和优化Microsoft解决方案。

咨询专家

获取微软技术最新资讯

Power AppsCanvas appsuser-defined functionsapp governancemaker productivity

相关文章

Power Platform

Microsoft 2026 Release Wave 1 for Power Platform

Microsoft’s 2026 Release Wave 1 for Power Platform and Dynamics 365, rolling out from April to September 2026, emphasizes AI-first and agentic capabilities, including deeper Copilot integration, smarter automation, and stronger governance for admins, makers, and developers. This matters because it shows Microsoft is accelerating toward more autonomous business applications and more frequent product updates, which will directly affect how organizations plan workflows, manage platforms, and adopt AI across core business operations.

Power Platform

Power Platform March 2026 Update: Admin & Copilot

Microsoft’s March 2026 Power Platform update adds stronger admin tools, including generally available inventory views, new licensing capacity reporting, and a preview usage dashboard that give IT teams better visibility into automation, adoption, and compliance risks across the tenant. It also expands Copilot capabilities in business apps and development experiences, making the platform more useful for both governance and day-to-day productivity.

Power Platform

Microsoft Copilot Studio Agent Governance for 2026

Microsoft’s latest Copilot Studio guidance says organizations planning for enterprise agent adoption in 2026 need more than experimentation—they need strong governance, security, operational readiness, and standardized delivery practices. The message matters because as AI agents become business-critical, companies will need clear ownership, guardrails, and scalable support models to reduce risk while still enabling teams to build and deploy agents effectively.

Power Platform

Power Platform February 2026 Update: Copilot and Governance

Microsoft’s February 2026 Power Platform update expands Copilot across business apps and adds stronger governance tools for admins. Key highlights include public previews for Microsoft 365 Copilot chat in model-driven apps, Power Apps MCP and enhanced agent oversight, plus new canvas app controls and admin features that help organizations automate work safely while improving security, compliance, and lifecycle management.

Power Platform

Power Apps Modern Controls Reliability Updates

Microsoft has shipped reliability improvements across nine Power Apps modern controls, with major fixes highlighted for Combo Box and Date Picker to better support production canvas apps at scale. The update improves large-data handling, server-side filtering, form and Dataverse behavior, read-only rendering, date persistence, timezone consistency, and mobile usability—important because modern controls are becoming the default foundation for enterprise apps and need to behave predictably in real-world scenarios.

Power Platform

Power Apps MCP Server 公测:受监督 AI 代理自动化

Microsoft 发布处于公测阶段的 Power Apps MCP Server,将 Power Apps 的“代理式数据录入”能力封装为 MCP 工具,让 AI 代理可从邮件、SharePoint 等非结构化来源提取信息并在应用中创建记录,同时保留人工复核、审批与低置信度交接机制。其重要性在于,它把自动化直接带入现有 Power Apps 工作流,并通过全新 enhanced agent feed 提供更强的治理、审计和“人在回路”控制,帮助企业在提升效率的同时降低 AI 代理落地的信任与合规风险。