[FEATURE] resolve the link between transactionalSMS / transactionalPush and the mobileMessage / mobilePush they create

Open
#2,733 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
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript
Domain
devtools

Research direction

Start with MobileMessage.js and trace postRetrieveTasks and preDeployTasks, then inspect how transactionalSMS retains definitionId and how journey-owned messages are handled. Check the corresponding mobilePush and transactionalPush retrieve and deploy paths. Decide whether owned messages should be saved or only cached, and define behavior so they are not deployed or deleted independently; verify both ownership links against the tested fields in the issue.

Written by the indexing model from the issue text.

Description

c/mobileMessage c/mobilePush c/transactionalPush c/transactionalSms enhancement
Background

Creating a transactional definition creates a second item in another type:

Created Marketing Cloud also creates Link on the created item
transactionalSMS a mobileMessage of the same name, sendMethod API smsTriggeredSendDefinitionId = definitionId of the definition
transactionalPush a mobilePush of the same name, sendInitiator 1 ("Outbound - API Triggered"), with the assetId of the definition's content and a copy of its title, subtitle and alert no ID field found; messageObjectId is not the definitionId. Only the equal name links them

Deleting the definition removes the mobilePush and archives the mobileMessage.

mcdev retrieves both sides as independent items today:

  • MobileMessage.js has // TODO unknown type on smsTriggeredSendDefinitionId (in postRetrieveTasks and preDeployTasks)
  • mobilePush and transactionalPush resolve their app and asset, but not each other
Proposal
  1. mobileMessage: resolve smsTriggeredSendDefinitionId to r__transactionalSMS_key on retrieve (cache transactionalSMS, which already keeps definitionId). A non-zero ID without a matching definition is normal and must not be reported as a missing dependency: an API-triggered message that was activated in MobileConnect itself has such an ID too.
  2. Treat messages that belong to a transactional definition like the journey-owned ones (_isJourneyOwned): they are created and removed by their owner, so they should not be deployed or deleted on their own. For mobileMessage a transactionalSMS whose definitionId equals the ID decides (a non-zero ID alone does not); for mobilePush the candidates are sendInitiator 1 plus a transactionalPush of the same name.
  3. Decide whether such owned items should be saved at all on retrieve, or only kept in the cache.
Tested

Seen with own test items on 2026-11-20 on a business unit with MobileConnect and MobilePush: smsTriggeredSendDefinitionId matched the definitionId of the definition that created the message; the mobilePush created by a transactional push definition had the definition's name, sendInitiator 1 and the asset's id.

Seen on 2026-11-22: an API-triggered mobileMessage created and activated in MobileConnect had a non-zero smsTriggeredSendDefinitionId that matched no transactional SMS definition.

Related: the delete guard for mobileMessage (separate issue).

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.