Locking delivery templates | Community
Skip to main content
RajeshBhat
Level 3
February 5, 2024
Question

Locking delivery templates

  • February 5, 2024
  • 1 reply
  • 1214 views

Hi there,

Is there a way to lock the delivery templates in Adobe campaign classic for modification? We want to make sure that the delivery templates which are already part of live trigger campaign won't get changed unless the trigger campaign gets paused/cancelled. What could be the best way to implement this if there is no straight forward solution? 

 

Many thanks for your comments/suggestions!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Parvesh_Parmar
Community Advisor
Community Advisor
February 5, 2024

 

Hello @rajeshbhat ,

 

Technically, it is possible to implement it. However, it will be custom development and not supported out of the box.

 

1. In the input form of delivery, you can call a custom SOAP method on leave, where you can pass this delivery id.

 

https://experienceleague.adobe.com/docs/campaign/campaign-v8/developer/shemas-forms/forms.html?lang=en#soap-methods

 

2. In this SOAP method, you can add JavaScript code to check if this delivery id is a template and if it is used in any workflow or campaign and what its status is.

 

3. For example, if the workflow status is "started," then you can log an error and not allow it to be saved. Otherwise, you can return success and save it.

 

Hope it will help you.

 

Thanks,

Parvesh

Parvesh Parmar – Adobe Community Advisor https://www.linkedin.com/in/parvesh-parmar/
RajeshBhat
Level 3
February 15, 2024

Hi,

I got a work around to identify the template linked to an active workflow. I have made the required changes in delivery input form, extended custom delivery schema & created new java script file. However I keep getting a java script error "Error while evaluating a javascript code, line 1: void(0) is not a function". Have double checked all the syntax and all but no luck. Could someone please help in resolving this? Attaching the code changes done along with the error snapshot. 

Error message on saving delivery template:

Changes in delivery input form within leave:

 

JS function in new javascript codes file:

Changes in custom data schema:

RajeshBhat
Level 3
February 23, 2024

I'm still waiting for a resolution for this error. Tried changing few naming conventions for the JS method but no luck.