Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: unable to add email contacts #1045

Merged
merged 1 commit into from
Dec 16, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,17 @@ public void ClickEmailMenuItem()
/// <param name="subject">Subject of the email</param>
public void AddEmailSubject(string subject)
{
_client.SetValue(Elements.ElementId[Reference.Timeline.EmailSubject], subject);
_client.SetValue(Elements.ElementId[Reference.Timeline.EmailSubject], subject);
}

/// <summary>
/// Opens the multiselect control and adds the contacts to the To, CC or BCC line.
/// </summary>
/// <param name="toOptions">Object of type MultiValueOptionSet containing name of the Field and the values to be set</param>
/// <param name="removeExistingValues">Remove any existing values in the To, CC, or BCC lines, if present</param>
public void AddEmailContacts(MultiValueOptionSet toOptions, bool removeExistingValues = false)
public void AddEmailContacts(LookupItem[] toOptions, bool removeExistingValues = false)
{
_client.SetValue(toOptions,FormContextType.Entity, removeExistingValues);
_client.SetValue(toOptions, FormContextType.Entity, removeExistingValues);
}

/// <summary>
Expand All @@ -87,7 +87,7 @@ public void AddEmailContacts(MultiValueOptionSet toOptions, bool removeExistingV
/// <param name="duration">The duration as text</param>
public void AddEmailDuration(string duration)
{
_client.SetValue(Elements.ElementId[Reference.Timeline.EmailDuration], duration);
_client.SetValue(Elements.ElementId[Reference.Timeline.EmailDuration], duration);
}

/// <summary>
Expand Down