since ‎11-09-2018
‎10-12-2019
NickC_
Level 1
Re: Personlisation within Javascript
Avatar

Anita_p

MVP

Anita_p
- Adobe Campaign Classic
Hi Nick,If I understand your requirement correctly, your var htmlBlock1 depends upon ( targetData.christmas == 1 ) condition.You can try below in your delivery:<%var htmlBlock1 = ' ' ;if ( targetData.christmas == 1 ) { var htmlBlock1 = } %>-- HTML Content --You can call this variable in the HTML content using <%= htmlBlock1 %>Hope this helps.Thanks,Anita

Views

1.4K

Likes

3

Replies

0
Re: Using long text datatype in delivery
Avatar

anne-sophiec407

anne-sophiec407
- Adobe Campaign Standard
Hello DarrenBiz​.Here is the SQL script that we created:DROP FUNCTION IF EXISTS convertToVarchar(parmValue text);CREATE OR REPLACE FUNCTION convertToVarchar(parmValue text)RETURNS VARCHAR AS 'DECLARE v_var_value VARCHAR DEFAULT null;BEGIN v_var_value := parmValue::TEXT; RETURN v_var_value;END;' LANGUAGE plpgsql;Best regards,Anne-Sophie

Views

4.6K

Likes

0

Replies

0
Likes from