Hi,
In the mapping of my datastream, I want to isolate the value of a specific url parameter.
Example: from "test=1&account=bitmap&step=abc", I want to map as output the value of account, so 'bitmap' in this case.
I did it this way based on this doc and it works:
But I have also unwished value if the parameter contains 'account=', not only equals 'account='
Example:
Output should be null because the parameter name is 'IDaccount=' and not 'account='.
Any idea how I can fix this ?
Thanks
Robin
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @robinl39529461 ,
You should be able to achieve this by nesting get_url_query_str and map_get_values functions like below,
map_get_values(get_url_query_str("https://example.com?test=1&account=bitmap&step=abc","retain"),"account")
Here are the results for two strings you tested,
Views
Replies
Total Likes
Hi @robinl39529461 ,
You should be able to achieve this by nesting get_url_query_str and map_get_values functions like below,
map_get_values(get_url_query_str("https://example.com?test=1&account=bitmap&step=abc","retain"),"account")
Here are the results for two strings you tested,
Views
Replies
Total Likes
Thanks a lot for your help.
It works. Id did it this way using your logic:
get_url_query_str(get_url_decoded("https://example.com?test=1&account=bitmap&step=abc"),"append")["account"]
Thanks again
Robin
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies