hubspot-net/HubSpot.NET

How do you add the From and To into the Metadata for Engagements?

Closed this issue · 1 comments

In the example:

            api.Engagement.Create(new EngagementHubSpotModel()
            {
                Engagement = new EngagementHubSpotEngagementModel()
                {
                    Type = "EMAIL", 
                },
                Metadata = new
                {
                    **from{ email = "someemial@test.com" },
                    to { email = "toemail@email.com" },**
                    subject = "Can someone help me out.",
                    html = "This is the html body"
                },
                Associations = new EngagementHubSpotAssociationsModel()
                {
                    ContactIds = new List<long>() { 1111 }
                }
            });

OH never mind.. figured it out. Great API.