How to auto populate Time Zone filed on Field Service Work Order with Work order creator's Time Zone
Summary:
Content (required):
- Time zone is a required field on field service work order.
- Also, every user has set their preferred time zone set under their regional setting.
We want to auto-populate the time zone in work order with the time zone of the user who would create the field service work order
adf.context.getSecurityContext()?.getUserProfile()?.getTimeZone(); is returning null whereas
adf.context.getSecurityContext()?.getUserName()?.getTimeZone(); is giving securityException
Version (include the version you are using, if applicable):
23B (11.13.23.04.0)
Code Snippet (add any code snippets that support your topic, if applicable):
adf.context.getSecurityContext()?.getUserProfile()?.getTimeZone(); is returning null whereas
0