When I create a record I'd like to populate one of the fields (P34_CONTACT) with current ldap user.
I am creating a dynamic code with (picture above):
apex.item("P34_CONTACT").setValue(:FULL_USER_NAME)
I am getting an error:
Uncaught SyntaxError: Unexpected token ':'
When I remove colon, I get:
Uncaught ReferenceError: FULL_USER_NAME is not defined
My authetentication schema is as below:
When I set a fixed name: apex.item("P34_CONTACT").setValue("FULL_USER_NAME") Field is being populated with "FULL_USER_NAME", so basically I need a correct variable or proper syntax Could anybody please assist?