1. We can create marketing emails, we can publish it by setting field “ispublished” to "true". The email has state “AUTOMATED_DRAFT” on creation. We get the email ID.
2. Then, we update the field "state" to "AUTOMATED". In the UI I can see the email published and I can send a test email.
3. We try to create a workflow via the API with action "type" “email“ and "emailContentId"email ID got in step 1)
HERE
We were getting 500 ERROR type even though today we tried again and I can see a new error "EMAIL_NOT_PUBLISHED_FOR_AUTOMATION".