Server-side processing runs on the web server and requires interaction with the server. It allows the server to provide dynamic websites tailored to the user, but it increases the processing load on server. It’s always processed first, in the backend, before the Client-side processing starts.
Client-side processing runs on the user’s computer and does not need interaction with the server. At the same time, it cannot directly interact with Marketing Cloud assets, like Data Extensions, Content, etc, as they can only be accessed by server-side functions in AMPscript and SSJS.
GetValue function returns the value of the specified Subscriber attribute or an AMPscript variable. This function always needs to be prefixed with an
Attribute object to retrieve Subscriber attributes or a
Variable object to retrieve AMPscript variables. Prefixing AMPscript variables with an @ character is optional.
Here’s an example of retrieving the value of an AMPscript variable in SSJS:
And an example of retrieving a value of an Attribute in SSJS:
SetValue function, which sets the value of an AMPscript variable. Similarly to the
GetValue function, prefixing the variable name with an @ character is optional.
Here’s an example of setting a value of an AMPscript variable in SSJS:
Leave a comment below or email me at firstname.lastname@example.org.