Post

2 followers Follow
0
Avatar

Access to organization field within the API

Hi Clarizen,

I am trying to access a custom organization field from the REST API, but I don't know how to, since it is not part of the data model and I can't figure out the URL to access it. 

I also tried to do a GET request of the system settings in case I could see it from there, but I got the following error:

{
"errorCode": "Internal",
"message": "An internal error has occurred, the error was logged and will be examined.",
"referenceId": "3D9aZFhmHY3TO0u4jSdMDa"
}

With following request:

https://apie.clarizentb.com/v2.0/services/metadata/getSystemSettingsValues?Settings="SessionTimeout","PasswordComplexity"

and a valid session id in my Authorization header.

Any advice?

Thanks,

Noémie

Noémie Neyron Answered

Official comment

Avatar

Hi,

To retrieve data on the organization you can use the query action with a body like this:

{
"q": "select Name,C_FieldName FROM Organization"
}


Regarding the getSystemSettingsValues, you should remove the apostrophes from the values:

metadata/getSystemSettingsValues?settings=Session timeout,Password complexity

Response:

{
"values": [
8,
2
]
}

 

 

I hope this helps,

Elad

 

Elad Franklin
Comment actions Permalink

Please sign in to leave a comment.

1 comment