Attach Group to Sent and/or Draft Campaign via API

  • 0
  • 1
  • Question
  • Updated 1 year ago
Is it possible to attach a Group to a Sent and/or Draft campaign via the API?
Photo of LexisNexis

LexisNexis

  • 20 Posts
  • 2 Reply Likes

Posted 1 year ago

  • 0
  • 1
Photo of Josué F. Machado

Josué F. Machado, Champion

  • 76 Posts
  • 49 Reply Likes
I am not sure that you can attach a group to an existing send but you can send a previously sent mailing to additional recipients. This is from the documentation (http://api.myemma.com/api/external/mailings.html):

POST /#account_id/mailings/#mailing_id
Send a prior mailing to additional recipients. A new mailing will be created that inherits its content from the original.

Does this help?
Photo of LexisNexis

LexisNexis

  • 20 Posts
  • 2 Reply Likes
Right, I understand that you can "send a prior mailing to additional recipients..." but that is not what I need to do.  I'm trying to automate the process of adding members/groups to a NEW (i.e., unsent) mailing.  I see API methods for adding new members and adding members to groups but nothing about adding members to mailings or adding groups to mailings.
Photo of Kyle Gregory | Lipscomb University

Kyle Gregory | Lipscomb University, Champion

  • 99 Posts
  • 69 Reply Likes
Hey @LexisNexis,

I don't think you can modify a scheduled mailing from the API, other than canceling it. What I think you could do, and maybe test it to make sure, is add a particular Group  to a scheduled mailing that you would update until that mailing goes out. I believe those changes to the group will be picked up a mail time.

If that works, would it help get you in the right direction?

Thanks,
Kyle
Photo of LexisNexis

LexisNexis

  • 20 Posts
  • 2 Reply Likes
Thx for the feedback.  Do you agree with this workflow?
1.) Via API, create Group.
2.) Manually schedule Mailing, manually add Group to Mailing
3.) Via API, add Members to Group.

I don't believe that the API has a method for adding a Group to a Mailing
Photo of Kyle Gregory | Lipscomb University

Kyle Gregory | Lipscomb University, Champion

  • 99 Posts
  • 69 Reply Likes
That would be the workflow I would try. Agreed there is no endpoint available to modify a mailing, so having the setup as you described would be my suggestion.
Photo of Jason Nack

Jason Nack

  • 7 Posts
  • 0 Reply Likes
There is no access to draft campaigns through the API. Even if there were, there is no way even on the front-end to attach people to a campaign before it is sent. You can distribute a previous campaign via the API and select which members/groups to send to, but you only do that when you send a mailing, just like the front-end. It is not really meaningful or useful to "attach" people to a document, which is all a campaign is before you send it to your selected recipients.
(Edited)
Photo of LexisNexis

LexisNexis

  • 20 Posts
  • 2 Reply Likes
Thx for the feedback.