How to give login operator name as a default field value?

Avatar

Avatar
Validate 1
Level 1
annief54377039
Level 1

Likes

3 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 1
annief54377039
Level 1

Likes

3 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
annief54377039
Level 1

17-09-2019

i have a requirement where in an input form i need to populate updatedBy field with the current operator name. So whenever a new record is inserted or an existing record is updated by an user using input form, i want that username to be populated in the updatedBy field. I tried using the default="CurrentUser()" in the schema on updatedBy field but it gives only the PK/ID of the current operator, not the name.

Is the any specific function which i can use to get the current operator name in schema? Or is there any other way to populate the current operator name to a field in input form? Please let me know.

Thanks,

Annie Femena.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Contributor
MVP
Anita_p
MVP

Likes

119 likes

Total Posts

119 posts

Correct reply

29 solutions
Top badges earned
Contributor
Shape 1
Ignite 3
Ignite 1
Validate 1
View profile

Avatar
Contributor
MVP
Anita_p
MVP

Likes

119 likes

Total Posts

119 posts

Correct reply

29 solutions
Top badges earned
Contributor
Shape 1
Ignite 3
Ignite 1
Validate 1
View profile
Anita_p
MVP

17-09-2019

Hi Annie,

You can check "modifiedBy-id" field which must have been defined while creating your custom schema and the below link helps to get the operator's name .

You can refer any OOB schema for the same. This snippet is from the Delivery Schema.

Screen Shot 2019-09-18 at 9.48.46 am.png

Hope this helps.

Thanks,

Anita

Answers (0)