what am i doing wrong trying to accsees the parms ...
# suitescript
s
what am i doing wrong trying to accsees the parms on page
Copy code
how can i acsses the parms on page init

redirect.redirect({
          url: output,
          parameters: {
            billstatus: false,
            custparam_test: "Please attached vendor bill ",
          },
        });
function pageInit(context) {
    var rec = context.currentRecord;
    var script = runtime.getCurrentScript();
    let searchid = script.getParameter({ name: "custparam_test" });
    let billstatus = script.getParameter({ name: "billstatus" });
    console.log({ billstatus, searchid });
b
the parameters used in a redirect are url query parameters
they will be found in the request parameters
👏 1