Forum Discussion

Thanh_Nguyen1050's avatar
Thanh_Nguyen1050
Copper Contributor
Apr 18, 2023

I cannot get the context.activity.locale at onMembersAdded event

Hi Team,

I'm localizing the welcome message when a user installs my App on MST. I would like to get the Locale of the user who installed the app by property: context.activity.locale

 


 

but context.activity.locale is always returned 'undefined'. As you can find the screenshot:

 

Although, I have checked the Installation point stored in Storage Account and I can find the locale of the user

 

Am I doing wrong or this is by your design. Because I found an answer on StackOverflow but not sure it's official from Microsoft: https://stackoverflow.com/questions/70830318/how-can-i-retrieve-user-locale-when-a-bot-or-member-is-added-msteams-conversa ?

is there anyway else to get the locale of users in the onMembersAdded event?

3 Replies

Resources