IF TEST = 1 { ASSIGN DNIS = "8881234567" ASSIGN ANI = "8013203437" ASSIGN WaitTime = "2 02:39:42" ASSIGN CallOriginationTime = "{datefmt(now, 'yyy-MM-dd HH:mm:ss')}" } //urlencode - Returns the contents of the variable encoded using the //Internet standard FOR URL encoding. Some data that needs to be added to a //URL for sceenpops needs to be encoded for it to be sent correctly. ASSIGN URL="?&sys_id=-1&sysparm_query=u_source_phone={DNIS}^u_caller_phone={ANI}^u_wait_time_string={WaitTime}^opened_at={CallOriginationTime}" ASSIGN EURL=URL.urlencode ASSIGN POPURL="http://www.incontact.com{EURL}" //urldecode - Returns the contents of the variable decoded from the //Internet standard FOR URL encoding. In this example we are simply decoding //the URL we just encoded which means URL and NewURL have the same value. ASSIGN NewURL = EURL.urldecode