An Office service that supports add-ins to interact with objects in Office client applications.
Hi @TJ Jann
Please note that we're not Microsoft support, this is a user-to-user support forum. Moderators here don’t have backend access to Microsoft systems, so we can only provide technical guidance based on public resources and experiences.
Based on the information you've shared, the behavior appears inconsistent with the documented support information. Your logs show that:
-
Office.context.requirements.isSetSupported('WordApi', '1.4')returnstrue, indicating that Word Online reports support for the API set that includesRange.insertComment(). - However, the call to
Range.insertComment()fails with aNotAllowederror, specifically aterrorLocation: "Range.insertComment".
Since the same code works consistently in Word Desktop but fails in Word Online, this suggests a platform-specific limitation or incomplete implementation in Word Online rather than an issue with your code.
It’s important to note that support for a requirement set such as WordApi 1.4 does not always guarantee that every API within that set is fully implemented or enabled across all hosts. In some cases, individual APIs may be partially supported or restricted in certain environments, such as Office on the web.
I recommend opening an issue with the Office.js team on GitHub repository where developers and contributors actively working with Office.js can share additional insights and guidance. If you open a GitHub issue, feel free to share the link here, as it may help other developers encountering similar behavior.
References: Participating in a discussion - GitHub Docs
Thank you for your patience and understanding, and I’m sorry we can’t resolve this directly here. Redirecting you ensures you’ll connect with the right support team who can provide the help you need.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.