Show account information in google apps script -


i trying find way retrieve information control panel in google apps script gadget in google site once user logs in google account.

i found 1 way run script user , used function session.getactiveuser() , deploy in apps script gadget.

did not work , error appeared "the script worked did not return anything."

any solutions problem? or did miss other way show information needed?

as mentioned in comment, not returning uiapp object. see ui service documentation information on how display ui. @ basic level can use following code

function doget(e)  {  var app = uiapp.createapplication();  var value = logactiveuseremail();  app.add(app.createlabel('your email address ' + value));   // return ui app  return app;  }   function logactiveuseremail()  {  var email = session.getactiveuser().getemail();  logger.log(email);   return email; } 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -