protected override async Task OnMessageActivityAsync(ITurnContext <IMessageActivity> turnContext, CancellationToken cancellationToken) { if (turnContext.Activity.Text == "Add me") { var member = await TeamsInfo.GetMemberAsync(turnContext, turnContext.Activity.From.Id, cancellationToken); var user = new UserDetailsEntity() { Name = (member.Name).Split(" ")[0], //indsert proper name UserUniqueID = turnContext.Activity.From.Id, AadId = turnContext.Activity.From.AadObjectId, EmailId = member.Email, ProfilePictureURL = string.Empty, RowKey = Guid.NewGuid().ToString(), PartitionKey = PartitionKeyNames.UserDetailsDataTable.TableName }; await _userDetailsRepository.CreateOrUpdateAsync(user); var reply = MessageFactory.Text("Your data is recorded !"); await turnContext.SendActivityAsync(reply, cancellationToken); } else { var reply = MessageFactory.Text("Welcome to Task Manager, Try crating new Tasks using Messaging extension"); await turnContext.SendActivityAsync(reply, cancellationToken); } }