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

Aperta
#2,733 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript
Ambito
devtools

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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).

Lingua principale
JavaScript
Stelle
166
Fork
50
Merge medio
11h 4m
PR unite (30g)
36

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Accenture/sfmc-devtools

Tutte le issue di Accenture/sfmc-devtools

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.