public override async Task Initialize() { IsPostingToQueryiedChatter = true; AvailableChatters = _salesforceManager.GetSalesforceObjectTypes(filterByProperties: SalesforceObjectProperties.HasChatter).Select(x => new ListItem { Key = x.Name, Value = x.Label }).ToList(); CrateSignaller.MarkAvailableAtRuntime <StandardPayloadDataCM>(PostedFeedCrateLabel).AddField(FeedIdKeyName); }
public override Task Initialize() { ActivityUI.SalesforceObjectSelector.ListItems = _salesforceManager .GetSalesforceObjectTypes() .Select(x => new ListItem() { Key = x.Name, Value = x.Name }) .ToList(); CrateSignaller.MarkAvailableAtRuntime <StandardTableDataCM>(RuntimeDataCrateLabel, true); return(Task.FromResult(true)); }
public override async Task Initialize() { ActivityUI.SalesforceObjectSelector.ListItems = _salesforceManager.GetSalesforceObjectTypes().Select(x => new ListItem { Key = x.Name, Value = x.Label }).ToList(); var activityTemplates = await HubCommunicator.GetActivityTemplates(Tags.EmailDeliverer, true); activityTemplates.Sort((x, y) => x.Name.CompareTo(y.Name)); ActivityUI.MailSenderActivitySelector.ListItems = activityTemplates .Select(x => new ListItem { Key = x.Label, Value = x.Id.ToString() }) .ToList(); }