Skip to content

Conversation

@alison-mk
Copy link
Contributor

@alison-mk alison-mk commented Dec 5, 2025

This PR documents how to support synchronous Excel processes in custom functions add-ins.

@learn-build-service-prod
Copy link
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit a616ff9:

💡 Validation status: suggestions

File Status Preview URL Details
docs/excel/custom-functions-synchronous.md 💡Suggestion View Details

docs/excel/custom-functions-synchronous.md

  • Line 3, Column 14: [Suggestion: duplicate-descriptions - See documentation] Attribute 'description' with value 'Show or hide custom functions from the Excel UI.' is duplicated in 'excel/custom-functions-synchronous.md(3,14)', 'excel/custom-functions-visibility.md(3,14)'.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

@learn-build-service-prod
Copy link
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit 44537bd:

✅ Validation status: passed

File Status Preview URL Details
docs/excel/custom-functions-json-autogeneration.md ✅Succeeded View
docs/excel/custom-functions-json.md ✅Succeeded View
docs/excel/custom-functions-synchronous.md ✅Succeeded View

For more details, please refer to the build report.

@learn-build-service-prod
Copy link
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit 88e5652:

✅ Validation status: passed

File Status Preview URL Details
docs/excel/custom-functions-json-autogeneration.md ✅Succeeded View
docs/excel/custom-functions-json.md ✅Succeeded View
docs/excel/custom-functions-synchronous.md ✅Succeeded View

For more details, please refer to the build report.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit fe6921e:

✅ Validation status: passed

File Status Preview URL Details
docs/excel/custom-functions-json-autogeneration.md ✅Succeeded View
docs/excel/custom-functions-json.md ✅Succeeded View
docs/excel/custom-functions-synchronous.md ✅Succeeded View
docs/toc.yml ✅Succeeded View

For more details, please refer to the build report.

@learn-build-service-prod
Copy link
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit 9beacaa:

✅ Validation status: passed

File Status Preview URL Details
docs/excel/custom-functions-json-autogeneration.md ✅Succeeded View
docs/excel/custom-functions-json.md ✅Succeeded View
docs/excel/custom-functions-synchronous.md ✅Succeeded View
docs/toc.yml ✅Succeeded View

For more details, please refer to the build report.

@learn-build-service-prod
Copy link
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit f01d65c:

✅ Validation status: passed

File Status Preview URL Details
docs/excel/custom-functions-json-autogeneration.md ✅Succeeded View
docs/excel/custom-functions-json.md ✅Succeeded View
docs/excel/custom-functions-synchronous.md ✅Succeeded View
docs/toc.yml ✅Succeeded View

For more details, please refer to the build report.

@learn-build-service-prod
Copy link
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit b069857:

✅ Validation status: passed

File Status Preview URL Details
docs/excel/custom-functions-json-autogeneration.md ✅Succeeded View
docs/excel/custom-functions-json.md ✅Succeeded View
docs/excel/custom-functions-synchronous.md ✅Succeeded View
docs/toc.yml ✅Succeeded View

For more details, please refer to the build report.

@alison-mk alison-mk marked this pull request as ready for review December 11, 2025 21:48
@alison-mk alison-mk requested a review from Copilot December 11, 2025 21:49
@learn-build-service-prod
Copy link
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit 3a30ee5:

✅ Validation status: passed

File Status Preview URL Details
docs/excel/custom-functions-json-autogeneration.md ✅Succeeded View
docs/excel/custom-functions-json.md ✅Succeeded View
docs/excel/custom-functions-synchronous.md ✅Succeeded View
docs/toc.yml ✅Succeeded View

For more details, please refer to the build report.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces documentation for synchronous custom functions in Excel, enabling developers to support evaluation and conditional formatting processes that require synchronous execution. The documentation explains when to use synchronous support, how to enable it, and includes warnings about limitations.

Key changes:

  • Added new article explaining synchronous custom functions and their use cases
  • Updated JSON metadata documentation to include the supportSync option
  • Added @supportSync JSDoc tag documentation with proper precedence rules

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
docs/toc.yml Adds new "Synchronous custom functions" entry to the table of contents under Custom Functions section
docs/excel/custom-functions-synchronous.md New article documenting synchronous custom functions, supported Excel processes, implementation details, and code samples
docs/excel/custom-functions-json.md Updates the options table to include supportSync property and clarifies property precedence rules
docs/excel/custom-functions-json-autogeneration.md Adds @supportSync JSDoc tag documentation and updates related tag descriptions to reflect mutual exclusivity

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 209 to 210
| `supportSync` | Boolean | No <br/><br/>Default value is `false`. | If `true`, the function supports synchronous processes in Excel. A function can only use one of the following three properties: `stream`, `supportSync` or `volatile`. If `supportSync` is combined with `stream` or `volatile`, `supportSync` is ignored. For more information, see [Synchronous custom functions](custom-functions-synchronous.md). |
| `volatile` | Boolean | No <br/><br/>Default value is `false`. | If `true`, the function recalculates each time Excel recalculates, instead of only when the formula's dependent values have changed. A function can't use both the `stream` and `volatile` properties. If the `stream` and `volatile` properties are both set to `true`, the volatile property is ignored. |
Copy link

Copilot AI Dec 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's an inconsistency in the precedence rules documented here compared to line 210. Line 209 states "If supportSync is combined with stream or volatile, supportSync is ignored" (meaning stream/volatile take precedence). However, line 210 states "If the stream and volatile properties are both set to true, the volatile property is ignored" (meaning stream takes precedence over volatile). This creates confusion about the actual precedence hierarchy. Consider documenting a clear precedence order, such as: "stream takes precedence over volatile, and both take precedence over supportSync."

Copilot uses AI. Check for mistakes.
@learn-build-service-prod
Copy link
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit 83acccf:

✅ Validation status: passed

File Status Preview URL Details
docs/excel/custom-functions-json-autogeneration.md ✅Succeeded View
docs/excel/custom-functions-json.md ✅Succeeded View
docs/excel/custom-functions-synchronous.md ✅Succeeded View
docs/toc.yml ✅Succeeded View

For more details, please refer to the build report.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@learn-build-service-prod
Copy link
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit 2e25757:

✅ Validation status: passed

File Status Preview URL Details
docs/excel/custom-functions-json-autogeneration.md ✅Succeeded View
docs/excel/custom-functions-json.md ✅Succeeded View
docs/excel/custom-functions-synchronous.md ✅Succeeded View
docs/toc.yml ✅Succeeded View

For more details, please refer to the build report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants