How to give login operator name as a default field value? | Community
Skip to main content
Level 2
September 17, 2019
Solved

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

  • September 17, 2019
  • 1 reply
  • 2889 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Anita_punmiya

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.

Hope this helps.

Thanks,

Anita

1 reply

Anita_punmiya
Anita_punmiyaAccepted solution
Level 5
September 18, 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.

Hope this helps.

Thanks,

Anita