[FEATURE] Handle generated automation keys and past start times for EmailAudience events

Open
#2,715 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript
Domain
devtools, tooling

Research direction

Find the EmailAudience retrieval and deployment entry points, then read how they handle event definitions and schedule time zones. Add coverage for omitting r__automation_key during retrieval and deployment, resetting past start times at deployment, and preserving future times. Done when those behaviors are verified by tests; the issue does not name specific files or tests.

Written by the indexing model from the issue text.

Description

enhancement NEW

Is your feature request related to a problem? Please describe.
Salesforce Marketing Cloud automatically creates the backing automation for EmailAudience event definitions. When retrieved metadata includes r__automation_key, it looks like an automation dependency that needs to be deployed. I currently remove the field manually before deploying. I also have to update schedule.startDateTime if the retrieved start time has already passed.

Describe the solution you'd like

  • During retrieval, omit r__automation_key from saved EmailAudience event definitions.
  • During deployment, remove r__automation_key from the outgoing payload so previously retrieved files can still be deployed.
  • If schedule.startDateTime is in the past, set it to the current date and time at deployment using the schedule’s configured time zone. Preserve future start times.

Describe alternatives you've considered
The current workaround is to remove r__automation_key and manually set a future start time before deployment. Stripping the field only during deployment would handle older files, but newly retrieved files would still make the automation look like a dependency.

Dominant language
JavaScript
Stars
166
Forks
50
Avg merge
11h 4m
Merged PRs (30d)
36

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Accenture/sfmc-devtools

All issues in Accenture/sfmc-devtools

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.