Line 8: ERROR SyntaxError: missing ) after argument list at char 45


#1

I am getting this error.not able to figure out the error.Kindly help me in this

//autoclose("SN_CC_20160401_154028");

function autoclose()
{
var rescode = resolution_code;
var res = resolution;
var fInt = new SCFile("incidents");
var rc = fInt.doSelect("open=\"" +Pending confirmation for closure+""\")

//var rc = ticket.doSelect("open = \""+Pending confirmation for closure+"\"" and pendingclosure

if(rc == RC_SUCCESS )
{
	print("Interaction Record For Auto Close Found");

	if(fInt.doSelect(rescode == "null" && res == "null"))
	{			
	//var resolution.code = +ticket.Resolved (Without confirmation from customer)+";"
	
	 fInt.rescode = Resolved (Without confirmation from customer);
	 fInt.res = "Auto Closed";
	 fInt.doSave()
	}
	do
	{
	var imrc = fInt.doAction("closeme");
	}
	while(fInt.getNext() == RC_SUCCESS);
	}
	else
	{
	print("Interaction Record For Auto Close Not Found");
}

}

autoclose();


#2

@padmashreek
Maybe you tried to express

var rc = fInt.doSelect("open=\"Pending confirmation for closure\"")

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.