http://coldfusion.com logo
Title
s

Simone

05/25/2023, 9:39 PM
trying to use the oracleHCM timezone thing, but the example does not give clear idea how to
"/hcmRestApi/resources/11.13.18.05/userAccountsLOV?finder=timezoneCode;TimezoneCode='UTC'
anyone used it before
s

slcronin

05/25/2023, 9:41 PM
What have you tried? What result did you get that wasn't what you expected?
s

Simone

05/25/2023, 9:42 PM
no, it seems the parameters i am sending is not right
s

slcronin

05/25/2023, 9:44 PM
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

Simone

05/25/2023, 10:51 PM
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

slcronin

05/25/2023, 10:53 PM
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

Simone

05/25/2023, 10:54 PM
i used /hcmRestApi/resources/11.13.18.05/userAccounts and this one does not give any kind of primarykey
s

slcronin

05/25/2023, 11:02 PM
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

Simone

05/25/2023, 11:20 PM
that works, but it does not seems to have any connection with serAccounts, but i think this should work