Loading
Salesforce Help 사이트 “Help Agent powered by Fin” 도입 안내더 많이 읽기
Tableau 고객 대상: Tableau를 이용하는 고객이 Help 사이트에서 사례(케이스)를 등록할 수 없는 경우의 대체 수단더 많이 읽기
Slack 관련 문의처가 Salesforce Help로 통합 및 변경됩니다.더 많이 읽기

Preheader does not display for AMPScript variables in the inbox

게시 일자: Oct 13, 2022
상세 설명
AMPScript variables used in the preheader won't render in the inbox if positioned in the body tags. They will render in preview and test, but when the email is sent it won't render the value of the variable.


Example

Preheader : Welcome %%=v(@firstname)=%%

HTML:
<html>
<body>
%%[
SET @firstname='Alex'
]%%
</body>
</html>

After sending the above Email, the preheader value won't render in the inbox.
솔루션

When the email is compiled to be sent, we place the preheader block directly after the opening <body> tag.

In order to have the preheader variables render for live sends, your AMPScript block that sets these variables must be placed before the opening <body> tag.


Example

Preheader : Welcome %%=v(@firstname)=%%

HTML:

<html>
%%[
SET @firstname='Alex'
]%%
<body>
Insert some email content here
</body>
</html>

The preheader value will render in the inbox.
Knowledge 기사 번호

000384371

 
로드 중
Salesforce Help | Article