Passing personalized value from workflow to Landing Page ACC | Community
Skip to main content
Level 3
September 1, 2021
Solved

Passing personalized value from workflow to Landing Page ACC

  • September 1, 2021
  • 2 replies
  • 1641 views

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.
Best answer by Malarrajan_Sundar

Hi @ratika ,

Yes, you can try this way.

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

Get the parameter name in the landingpage using Javascript.

 

- Malarrajan Sundarraj

2 replies

Marcel_Szimonisz
Community Advisor
Community Advisor
September 1, 2021

Hello @ratika,

you can pass parameters via GET request.

webapp/myapp?param1=value1&param2=value2

 

Marcel

Malarrajan_SundarAdobe EmployeeAccepted solution
Adobe Employee
September 1, 2021

Hi @ratika ,

Yes, you can try this way.

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

Get the parameter name in the landingpage using Javascript.

 

- Malarrajan Sundarraj

ratikaAuthor
Level 3
September 1, 2021

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

Adobe Employee
September 1, 2021

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