Skip to main content
1 of 2

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");