Forum Discussion
ChayceDuncan2
6 years agoQrew Cadet
Dana - see the below as one way to get the User Id
In this case - I've declared urlU as the getUserInfo API call - then the User Id gets stored in a variable 'user' in the actual JS line. I've commented it out - but the second $.get is where you can set up your Edit Record call and include the user variable as part of the call
Chayce Duncan | Technical Lead
(720) 739-1406 | chayceduncan@quandarycg.com
Quandary Knowledge Base
"javascript: {" &
"$.get('" & $urlU & "',function(data,success) {" &
"console.log(data);" &
"var user = data.getElementsByTagName('user')[0].getAttribute('id');" &
"console.log(user);" &
//"$.get('" & $urlE & "' + user);" &
"});" &
"}"
In this case - I've declared urlU as the getUserInfo API call - then the User Id gets stored in a variable 'user' in the actual JS line. I've commented it out - but the second $.get is where you can set up your Edit Record call and include the user variable as part of the call
Chayce Duncan | Technical Lead
(720) 739-1406 | chayceduncan@quandarycg.com
Quandary Knowledge Base