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
Hi Kari,You dont have to use Current object with g_form.getValue() function. It only takes the field name as an argument from which you want to fetch the value and use.Correct code will be as following.var a = parseInt(g_form.getValue('u_currency'));...
Is your workflow not attached to Requested Item table? if not, then it should be attached to RITM table because RITM will be the record driving your workflow for the service requested by user. Once it's attached to RITM table, current.u_requested_for...
i would suggest you change your script to the following then.var userID = current.variables.requested_for;var loggedInUser = gs.getUserID();if (userID){ var request = new GlideRecord('sc_request'); request.get(current.request); request.requeste...
Hi William,Are you using this script in a business rule on RITM? Can you share more information on how actually you are running this script and when to set the values for requested_for.Regards,Ishant