Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Both decodeURIComponent() and decodeURI() not work on scoped application

Antonio42
Kilo Guru

Team, I am trying to decode an URL, but I am getting undefined value. Could you guys know how to resolve it?
Find below my code:

function getParameterValue(pName){

    var glideURL = new GlideURL();
    glideURL.setFromCurrent();
    var url = glideURL.getParam(pName);

    return decodeURI(url[pName]);
    //return decodeURIComponent(url[pName]);
}

 

15 REPLIES 15

Hi Ankur, sorry for my delay response. It was not resolved yet, it brings me special character.