Call a personalization block from a jssp page | Community
Skip to main content
Level 2
February 22, 2018
Solved

Call a personalization block from a jssp page

  • February 22, 2018
  • 2 replies
  • 1197 views

Within an email template in Adobe Campaign, the command <%@ include view="personalizationBlock" %> can be used to include personalization block content.

The same tag doesn’t seem to work within JSSP pages, however. I received the error:

"Invalid command: ' include view="viocEmailTemplate" '.

SSI-280000 Failure while analyzing document (1 error(s))."

Is there a way to include personalization blocks from within JSSP pages?

Thanks!

Jim

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

Hi Jim,

This is not possible. It should be used inside deliveries only.

Regards,
Vipul

2 replies

vraghav
Adobe Employee
vraghavAdobe EmployeeAccepted solution
Adobe Employee
February 23, 2018

Hi Jim,

This is not possible. It should be used inside deliveries only.

Regards,
Vipul

August 31, 2022

This is actually possible(I am using it for testing personalization blocks rather running from a delivery - quite easy to edit HTMLs) but with some twinkling to the jssp code, I am mentioning the steps:

1. setup your JSSP page to make specific DB calls(you can look out existing OOB Jssps/others for the reference)

2. With the generic query editor make your query for personlisation block - something like below

 

var resZ = sqlSelect("block,internalName:string,label:string, mdata:memo", "SELECT I0.sName, I0.sLabel, I0.mData, I0.iIncludeViewId, I0.iFolderId, F1.iFolderId FROM NmsIncludeView I0 JOIN XtkFolder F1 ON (F1.iFolderId = I0.iFolderId) WHERE (I0.sName = E'name of personlisation block') LIMIT 201");

 

You can then parse thi variable(resZ ) inside jssp HTML to display data, Works like a Charm!!