Hello,
I have a VBCS web application deployed inside Digital Customer Service (DCS).
On the homepage, I have two links:
<a class="oj-link" id="anonHighLoadLink_300000003087856" href="https://.../webApps/dcs/?page=shell&shell=decision-page-b2c&categoryId=**666**"> B2C High Load </a>
<a class="oj-link" id="anonHighLoadLink_123" href="https://.../webApps/dcs/?page=shell&shell=decision-page-b2c&categoryId=**777**"> B2C XYZ </a>
When the user clicks one of these links, the DCS shell navigates to decision-page-b2c.
However, in DCS the URL parameters are removed from the browser address bar during navigation.
So although I pass:
categoryId=666
the final browser URL no longer contains this parameter.
But the value is still present inside the router payload (the navigation payload that VBCS receives when the page loads).
Payload:
page=shell&shell=decision-page-b2c&categoryId=300000003087856
Requirement:
Inside decision-page-b2c, I have a page variable called CategoryKey. I need to extract the categoryId value from the navigation payload (for example 666 or 777)
and store it in:
CategoryKey = 666 or CategoryKey = 777
This variable is then used to decide which action or flow should run next.
Question:
How can I reliably extract the categoryId value from the navigation payload (since it is no longer visible in the URL) and assign it to a VBCS page variable?
Is there a recommended way in VBCS/DCS to read parameters that are passed in the initial URL but removed from the browser address bar during client-side routing?