We're reclaiming inactive PDIs to keep them available foractive builders.Learn what's changing, who's affected, and how to protect your work. Read More
It looks like you're creating a glide record on the configuration item table not the incident.var gr = new GlideRecord('Incident');Also you are missing a quotation on your string declaration var Username= "John Doe";