Page 1 of 1

Getting users phone number from script.wrap(user) at reg

Posted: Mon Feb 05, 2018 2:07 am
by xlordt
Does anyone knows how to get the users phone number at registration?
currently I have tried the following..

Code: Select all

def userBean  = scriptHelper.wrap(user);
def phoneBean = scriptHelper.wrap(user.phones); //will this work? 

mail.body = "${userBean.LandLinePhone} ------ <br> ${userBean.phones.dump()} <br> ${phoneBean} ------<br> ${phoneBean.dump()}  -------- <br> ${userBean.phone}"
Thanks.