Forum Discussion
Modify APM variable value
- Feb 06, 2020
I guess ;)
here are my tests:
variable assign:
1 - session.custom.source = Text 109511158543
2 - session.custom.target = join [scan [mcget {session.custom.source}] "%8s%4s"] "-"
After authenticationI have following variables:
session.custom.source 109511158543
session.custom.target 10951115-8543
You can add a variable assign in VPE, with expression like
set var [mcget {session.xxx.xxx}]
return "[string range $var 0 7]-[string range $var 8 end]"
Or even better
join [scan [mcget {session.xxx.xxx}] "%8s%4s"] "-"
- SqueakFeb 05, 2020Cirrus
I tried your solution but I didn´t get it to work. I added a Variable assign in the VPE like this,
session.session.custom.xx = join [scan [mcget {session.session.session.custom.xx}] "%8s%4s"] "-"
Or maybe I did something wrong?
//Mike
- Stanislas_Piro2Feb 06, 2020Cumulonimbus
I guess ;)
here are my tests:
variable assign:
1 - session.custom.source = Text 109511158543
2 - session.custom.target = join [scan [mcget {session.custom.source}] "%8s%4s"] "-"
After authenticationI have following variables:
session.custom.source 109511158543
session.custom.target 10951115-8543
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com