Skip to main content
added 12 characters in body
Source Link

You can execute AMPScript in SSJS Activity leveraging ContentBlockByKey function.

Write you ampscript block in a code snippet and save it and write the below ssjs code snippet in your script activity.

  <script runat="server">
    Platform.Load("core", "1");
    var content = Platform.Function.ContentBlockByKey("ConentBlockName");

You can execute AMPScript in SSJS Activity leveraging ContentBlockByKey function.

Write you ampscript block in a code snippet and save it and write the below ssjs code snippet in your script activity.

<script runat="server">
    Platform.Load("core", "1");
    var content = Platform.Function.ContentBlockByKey("ConentBlockName");

You can execute AMPScript in SSJS Activity leveraging ContentBlockByKey function.

Write you ampscript block in a code snippet and save it and write the below ssjs code snippet in your script activity.

  <script runat="server">
    Platform.Load("core", "1");
    var content = Platform.Function.ContentBlockByKey("ConentBlockName");
Source Link

You can execute AMPScript in SSJS Activity leveraging ContentBlockByKey function.

Write you ampscript block in a code snippet and save it and write the below ssjs code snippet in your script activity.

<script runat="server">
    Platform.Load("core", "1");
    var content = Platform.Function.ContentBlockByKey("ConentBlockName");