1

this may seem like a silly question, but I copied a previous mailing and it copied the campaign from that mailing. Now I can't figure out how to remove that campaign from my new mailing?

4
  • This won't help you now, but assuming you mean changing the campaign of a sent mailing, I've made changing campaign and name for a sent mailing possible in the UI recently, but it won't be available until 5.56: github.com/civicrm/civicrm-core/pull/24698
    – Lars SG
    Oct 24, 2022 at 18:25
  • @LarsSG Thanks, but I meant removing a campaign completely from an unsent mailing. It seems once you save a campaign you can't remove it. The solution from pradeep nayak below worked for me!
    – erin
    Oct 24, 2022 at 18:28
  • Oh, you're right! That's silly, definitely broken. You should log an issue on Gitlab.
    – Lars SG
    Oct 24, 2022 at 18:39
  • Are you using Mosaico and Shoreditch? Seems to be a specific problem with the workflow specific to those two.
    – Lars SG
    Oct 24, 2022 at 18:46

1 Answer 1

2

You can update the campaign for the mailing id 123 via one of the below method

  1. Run SQL code

code:

UPDATE civicrm_mailing SET campaign_id = NULL WHERE id=123;
  1. API 3 explorer - Navigate to CiviCRM >> Support >> Developer >> API Explorer v3

enter image description here

  1. API 4 explorer - Navigate to CiviCRM >> Support >> Developer >> API Explorer v4 enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.