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

Any issue about Cyclos 4 scripting and Webservices

Moderators: hugo, alexandre, rmvanarkel

Post Reply
xlordt
Posts: 3
Joined: Wed May 24, 2017 9:10 am

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

Post by xlordt » Mon Feb 05, 2018 2:07 am

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.

Post Reply