Unable to make imported channels isFavouriteByDefault or visible

Unable to make imported channels isFavouriteByDefault or visible
0

Upvotes

Upvote

 Dec 14 2021
0 Comments 
New

I've managed to import channels and messages with accordance to the guid:

https://docs.microsoft.com/en-us/microsoftteams/platform/graph-api/import-messages/import-external-messages-to-teams#import-content-scope

 

Import works fine.

(import means creating team and channels in the migration mode)

But if we look at the imported channels, they will be "hidden" (see screenshot)

Screenshot-2021-12-06-at-19-48-25

 

There is also github issue:

https://github.com/microsoftgraph/microsoft-graph-docs/issues/6885

which describes similar situation, but as far as I understood the author told about usual Teams/Channels, not migrated ones.

 

Question is

How to make imported Channels favourite by default or how to make them visible for users by default?

 

UPD

That's a log of how I import Channel (in the migration mode):

---------------------- REQUEST LOG -----------------------
POST  /v1.0/teams/c0b81ff7-ebda-4419-b1a4-55244d403615/channels  HTTP/1.1
HOST   : graph.microsoft.com
HEADERS:
          Accept-Encoding: gzip
            Authorization: Bearer
           Content-Length: 212
             Content-Type: application/json; charset=utf-8
BODY   :
{"displayName":"NC460 Sales","id":"","isFavoriteByDefault":true,"email":"","webUrl":"","membershipType":"standard","createdDateTime":"2021-08-05T07:42:29.518Z","@microsoft.graph.channelCreationMode":"migration"}

---------------------------------------------------------------
---------------------- RESPONSE LOG -----------------------
STATUS  : 201 Created
RECEIVED AT : 2021-12-07T15:52:42.341953+03:00
RESPONSE TIME : 2.219306112s
HEADERS:
         Content-Encoding: gzip
             Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
                 Location: https://teamsgraph.teams.microsoft.com/v1.0/teams('c0b81ff7-ebda-4419-b1a4-55244d403615')/channels('19:cfd343673ede4abdb5c79340a92bdf97@thread.tacv2')
BODY   :
{
   "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#teams('c0b81ff7-ebda-4419-b1a4-55244d403615')/channels/$entity",
   "id": "19:cfd343673ede4abdb5c79340a92bdf97@thread.tacv2",
   "createdDateTime": null,
   "displayName": "NC460 Sales",
   "description": null,
   "isFavoriteByDefault": null,
   "email": null,
   "webUrl": null,
   "membershipType": null
}
--------------------------------------------------------------
---------------------- REQUEST LOG -----------------------
GET  /v1.0/teams('c0b81ff7-ebda-4419-b1a4-55244d403615')/channels('19:cfd343673ede4abdb5c79340a92bdf97@thread.tacv2')  HTTP/1.1
HOST   : graph.microsoft.com
HEADERS:
          Accept-Encoding: gzip
            Authorization: Bearer
BODY   :
***** NO CONTENT *****
----------------------------------------------------------------
---------------------- RESPONSE LOG -----------------------
STATUS  : 200 OK
RECEIVED AT : 2021-12-07T15:52:42.906489+03:00
RESPONSE TIME : 563.329525ms
HEADERS:
         Content-Encoding: gzip
             Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
BODY   :
{
   "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#teams('c0b81ff7-ebda-4419-b1a4-55244d403615')/channels/$entity",
   "id": "19:cfd343673ede4abdb5c79340a92bdf97@thread.tacv2",
   "createdDateTime": "2021-08-05T07:42:29.518Z",
   "displayName": "NC460 Sales",
   "description": null,
   "isFavoriteByDefault": true,
   "email": "",
   "webUrl": "https://teams.microsoft.com/l/channel/19%3acfd343673ede4abdb5c79340a92bdf97%40thread.tacv2/NC460+Sales?groupId=c0b81ff7-ebda-4419-b1a4-55244d403615&tenantId=c0b81ff7-ebda-4419-b1a4-55244d403615",
   "membershipType": "standard"
}
---------------------------------------------------------------

In the last response i've received a newly created Channel which has `"isFavoriteByDefault": true`, but result is the same - In the Web UI and Teams app UI that channel Hidden by default.