Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Passing personalized value from workflow to Landing Page ACC

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 3

Hi @ratika ,

Yes, you can try this way.

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

Get the parameter name in the landingpage using Javascript.

 

- Malarrajan Sundarraj

View solution in original post

5 Replies

Avatar

Community Advisor

Hello @ratika,

you can pass parameters via GET request.

webapp/myapp?param1=value1&param2=value2

 

Marcel

Avatar

Correct answer by
Level 3

Hi @ratika ,

Yes, you can try this way.

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

Get the parameter name in the landingpage using Javascript.

 

- Malarrajan Sundarraj

Avatar

Level 2

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

Avatar

Level 3

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