public async Task CreateAndConfigureSlackActivity(string slackChannel) { activitiesCount++; var slackActivity = await _hubCommunicator.CreateAndConfigureActivity(publishToSlackTmpl.Id, HttpUtility.UrlEncode("post to " + slackChannel), activitiesCount, monitorTerminalSubmissions.StartingSubPlanId, false, slackTokens.AuthTokens.FirstOrDefault().Id); SetDDL(slackActivity, slackActivity.CrateStorage.FirstCrateOrDefault <StandardConfigurationControlsCM>().Content.Controls[0].Name, slackChannel); var data = await _hubCommunicator.GetAvailableData(slackActivity.Id, CrateDirection.Upstream, AvailabilityType.NotSet); SetUpstream(slackActivity, slackActivity.CrateStorage.FirstCrateOrDefault <StandardConfigurationControlsCM>().Content.Controls[1].Name, "slack message", data); await _hubCommunicator.SaveActivity(slackActivity); }