pages method is not working in Mircosoft teams-js library

Anonymous
2024-08-12T05:11:36+00:00

In teams-js library, when i call the pages method for multiple funtionalities like registerOnSaveHandler, getConfig, etc. I am getting error in testing - this call is only allowed in context [setting], current context [content].

I am not able to use the method in any pages in my project. I am using pages method in each page for different functionalities for the application on microsoft teams.

internalAPIs.ts:64 Uncaught (in promise)

Error: This call is only allowed in following contexts: ["settings"]. Current context: "content".

at Tt (internalAPIs.ts:64:1) 

at r (pages.ts:545:1) 

at e.registerOnSaveHandler (pages.ts:520:1) 

at AbapTabConfig.tsx:320:1 



Microsoft Teams | Microsoft Teams for education | Teams and channels | Manage a team or channel

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Accepted answer
  1. Anonymous
    2024-08-12T05:44:29+00:00

    Hi Shubham,

    Thank you for connecting with us on Microsoft community.

    According to your description, seems like your teams-js library concern environment is associated with Developer platform or SDK or Java script programing platform, I was consulting your thread with my team members, I would like to share some more specific direction information with you, actually Microsoft has separate community channel resources where our related most valuable professional and community members can provide possible information for certain different support scope resources platform, so would you mind to contacting and placing your concern on our dedicated separate Microsoft Teams Development - Microsoft Q&Acommunity channel?

    Actually, this community does not focus Developer platform or Java script / SDK or any programing script related scenario for Microsoft Teams. But this community is mainly focusing Microsoft 365 Business license subscription services related scenario for Teams application.

    However, there is an another specific channel for your mentioned concern where you may get some possible information for certain specific resources and platform from our related community members.

    I would greatly appreciate your valuable cooperation and valuable time.

    Sincerely,
    Vaidya Darpan

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful