'App id <TeamAppID> needs to be installed to the scope <TeamID>:<ChannelId> and be in an unblocked state to install/update a tab

When I am running the below given Graph API Call,I am getting the error as above.

POST https://graph.microsoft.com/v1.0/teams/< TeamId >/channels/< ChannelId >/tabs

{"displayName":"Transform","[email protected]":"https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/<TeamID>","name":"Transform","configuration":{"entityId":null,"contentUrl":"<Url>","websiteUrl":"<Url>","removeUrl":null}}

If I add this personal app in that channel manually, and then run this API , it will work. My requirement is to do that automatically.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source