Skip to content

Commit

Permalink
fix: unable to add email contacts (#1045)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewingjm committed Dec 16, 2020
1 parent 60cfc59 commit 58381d3
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 58381d3

Please sign in to comment.