QuestionQ43

VerifiedScripting and Automation

A developer wants to extend the functionality of existing code written in AMPscript, but prefers to use Server-Side JavaScript (SSJS) for updates.

Which SSJS statement retrieves the value of the AMPscript variable named subKey?

Explanation

The SSJS Variable object retrieves values from AMPscript variables in the current script context. Variable.GetValue("@subKey") accesses the AMPscript variable @subKey; Salesforce documents that the @ prefix is accepted when referencing AMPscript variables from SSJS.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!