Skip to main content
Level 3
Sep 1, 2021 7:27 AM UTC
Solved

Passing personalized value from workflow to Landing Page ACC

Hi,

 

Is it possible to pass a personalized value flowing in from a workflow to a landing page in ACC.
For a cross sell campaign we have a requirement to pass product name on landing page and this value will depend upon the campaign use case so we want to pass this value from workflow. Is there a way to do this? If not what could be the best possible way to achieve the same.

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Malarrajan_SundarAccepted solution
Adobe Employee
Sep 1, 2021 1:41 PM UTC

Hi @ratika ,

Yes, you can try this way.

webapp?param1=<%=targetData.productName%>

Get the parameter name in the landingpage using Javascript.

 

- Malarrajan Sundarraj

5 replies

Marcel_Szimonisz
Community Advisor
Community Advisor
Sep 1, 2021 12:22 PM UTC

Hello @ratika,

you can pass parameters via GET request.

webapp/myapp?param1=value1&param2=value2

 

Marcel

Translate
Malarrajan_SundarAdobe EmployeeAccepted solution
Adobe Employee
Sep 1, 2021 1:41 PM UTC

Hi @ratika ,

Yes, you can try this way.

webapp?param1=<%=targetData.productName%>

Get the parameter name in the landingpage using Javascript.

 

- Malarrajan Sundarraj

Translate
ratikaAuthor
Level 3
Sep 1, 2021 2:12 PM UTC

@malarrajan_sundar Can you please share the syntax to get the parameter value in the webapp using js?

Translate
Adobe Employee
Sep 1, 2021 2:20 PM UTC

Hi @ratika ,

Include jQuery Library in the landing page.

<script>  
    $(document).ready(function () {  
        var productName = GetParameterValues('productName');    
        function GetParameterValues(param) {  
            var url = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');  
            for (var i = 0; i < url.length; i++) {  
                var urlparam = url[i].split('=');  
                if (urlparam[0] == param) {  
                    return urlparam[1];  
                }  
            }  
        } 
      $("ID or Class").text(productName);	// display the product	
    });  
</script>

- Malarrajan Sundarraj

 

Translate