My Oracle Support Banner

Custom Field based On OOTB Created By Gives Different User Value (Doc ID 2664665.1)

Last updated on DECEMBER 22, 2020

Applies to:

Oracle Fusion CX Sales Cloud Service - Version and later
Information in this document applies to any platform.


On : version, Sales, Sales Catalog

Custom Field based On OOTB Created By Gives Different User Value

There is a custom text formula field "created_c" with following code:

def sResourceName
def tmpParId = adf.util.getResourceUserPartyId(CreatedBy);
def oResObj = newView('Resource')
def sQry = " Username = "+CreatedBy 
def oResObjRec =
sResourceName = oResObjRec.PartyName

def theDate = CreationDate
def fmt = new Formatter()
def String sDate = fmt.format('%tm/%td/%tY %tH:%tM:%tS',theDate,theDate,theDate,theDate,theDate,theDate)

def value = CreationDate
def user_time_zone = oracle.apps.fnd.applcore.common.ApplSessionUtil.getTimeZone();
def dateFormat = 'MM/dd/yyyy hh:mm:ss a'
def utz = value.format(dateFormat, TimeZone.getTimeZone(user_time_zone));

println('Resource name: '+sResourceName )

return sResourceName+' '+CreationDate

This was done for the users to see the created by along with timestamp.The records created by the particular user, created uptill or around 1/20/2020 show different users under this custom fomula field and OOTB Created By.

This has been working for all users so far except for the case.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.