Skip to main content

Hi,

 

I am trying to retrieve a list of Attributes for a specific Employee Class using the REST API

I can hit the REST API and retrieve a list of Employee Classes, but I cannot use the ID retrieved to then retrieve any additional data.

The particular Screen ID is as follows

ScreenId=EP202000

 

Can anyone give me any recommendations?

Hi @mattollie ,

You can create a Generic Inquiry (GI) with the desired attributes and then establish an endpoint for the GI.

 

 


Hi Jini,

 

Is there an article or something on setting this up?

I have never used the Generic Inquiry form within the product so I am unsure what is required.

 

Generally when I want to get back data through the REST API, I hit an endpoint and it will return data.

How would the Generic Inquiry form work to then hit an API endpoint and return data?


Hi @mattollie ,

I’ve attached a package with the GI and endpoint. Please publish the package and review the endpoint through Postman.

Url:  /entity/EPEmployeeClass/22.200.001/EmployeeClass?$expand=EmployeeClassDetails

Method: PUT

Request:
 

{

    "EmployeeClassID": {

        "value": "EMPHOURLY"

    }

}

 


Reply