VishalMistry
6th October 2015, 07:46
Hello Everyone,
I want to get user's email id from session ttaad2500m000 (Maintain User session). Actually at the table level, ttaad200 does not store email id. when I checked, it is a form field and I don't know from where is it reading user's email id. When I am making call through stpapi by calling ttaad2500m000, I am able to get user's name based on user id but not email id. following is my code:
stpapi.put.field( "ttaad2500m000", "ttaad200.user", hold.user )
stpapi.find("ttaad2500m000")
stpapi.get.field( "ttaad2500m000", "ttaad200.name", hold.name )
stpapi.get.field( "ttaad2500m000", "email", hold.name )
message(hold.name) | displays nothing as i dont know how to read form field
Can anybody guide what is wrong ?
Vishal
I want to get user's email id from session ttaad2500m000 (Maintain User session). Actually at the table level, ttaad200 does not store email id. when I checked, it is a form field and I don't know from where is it reading user's email id. When I am making call through stpapi by calling ttaad2500m000, I am able to get user's name based on user id but not email id. following is my code:
stpapi.put.field( "ttaad2500m000", "ttaad200.user", hold.user )
stpapi.find("ttaad2500m000")
stpapi.get.field( "ttaad2500m000", "ttaad200.name", hold.name )
stpapi.get.field( "ttaad2500m000", "email", hold.name )
message(hold.name) | displays nothing as i dont know how to read form field
Can anybody guide what is wrong ?
Vishal