trying to use the oracleHCM timezone thing, but th...
# cfml-general
s
trying to use the oracleHCM timezone thing, but the example does not give clear idea how to
Copy code
"/hcmRestApi/resources/11.13.18.05/userAccountsLOV?finder=timezoneCode;TimezoneCode='UTC'
anyone used it before
s
What have you tried? What result did you get that wasn't what you expected?
s
no, it seems the parameters i am sending is not right
s
That doesn't answer either of my questions.
from the docs: • finder: string • Used as a predefined finder to search the collection. • • Format ?finder=<finderName>;<variableName>=<variableValue>,<variableName2>=<variableValue2> • • The following are the available finder names and corresponding finder variables • • EnabledFinder Finds the time zones that are enabled. • Finder Variables ◦ timezoneCode; string; The unique identifier of the time zone. • PrimaryKey Finds the time zone for the given primary key. • Finder Variables ◦ TimezoneCode; string;
Sure looks like the only two options for "finder" are "EnabledFinder" and "PrimaryKey". So why are you using timeCodeZone as the value of the "finder" parameter?
s
i want to find the timezone of logged in user, but if i use the getall users api call, it does not get the timezone of logged in users so trying to find what can i use to get that information
s
Does the logged in user have a primary key? If so, I'd try using PrimaryKey as the "finder" parameter? Again, what have you tried?
s
i used /hcmRestApi/resources/11.13.18.05/userAccounts and this one does not give any kind of primarykey
s
have you tried this? It lists timezone as one of the response fields. https://docs.oracle.com/en/cloud/saas/human-resources/23b/farws/op-selfdetails-selfdetailsuniqid-get.html
s
that works, but it does not seems to have any connection with serAccounts, but i think this should work