scroll

Activity - Read

Activity Read Method

The Activity API provides access to the Activity Resource.

Activity Read allows the user to acquire the data of the Activity that meets the specified conditions.

GET

https://{Request URI Host}/v1/activity?partition=[value]&count=[value]&start=[value]&field=[value,...]&condition=[field=value,...]&itemstate=[value]&keywords=[value,...]&order=[value,...]

 

Scope

The access privilege required for Activity Read is as follows:

activity_r, client_r, recruiter_r, job_r, candidate_r, resume_r, process_r, sales_r, user_r, option_r

 

Input Variables

When using the GET or POST Method, the parameter of the HTTP Header must be specified with a value. For details, see HTTP Header.

The following shows the Parameters that can be specified:

Each Parameter is an AND condition for search.

Required Parameter Definition
partition Specify a numerical value for the Partition Id.
To check the Partition Id that can be accessed, acquire the information using Partition Read.
count Specify the number of records of data to acquire.
The range of the values that can be specified is between 1 and 200. If nothing is specified, 10 is assumed to be specified.
start The start index of the data to acquire. Specify a numerical value of 0 or larger.
field Specify items to output. If nothing is specified, Activity.P_Id is assumed to be specified.
For details, see Read API - Parameter > Read - Field.
For information on the Fields that can be specified, see Activity - Field List.
condition Specify the search conditions.
For details, see Read API - Parameter > Read - Condition.
For information on the Fields that can be specified, see Activity - Field List.

Note that when “deleted” or “all” is specified for the itemstate,  the following three Fields and conditions can be specified for “condition.”
More than one of the following three conditions can be specified.
  1. Activity.P_Id
  2. Activity.P_UpdateDate
    The value that can be specified is a value between the date and time of the Request and the same time 90 days prior. No date and time earlier than this time can be specified.
    If nothing is specified, the same time 90 days prior to the date and time of the Request is assumed to be specified.
  3. Activity.P_UpdatedBy
itemstate

Specify the status of data to acquire.
The following values can be specified. If nothing is specified, “existing” is assumed to be specified.
 existing: Acquire the undeleted data
 deleted: Acquire the deleted data
 all: Acquire the data in all states

When “deleted” or “all” is specified, the conditions that can be specified for “condition” are limited.
This parameter will be available from 04/10/2018.

keywords Specify the keywords for the conditions for the data to acquire.
For details, see Read API - Parameter > Read - Keywords.
order Specify the sorting order of the data when output. If nothing is specified, Person.P_Id:asc is assumed to be specified.
For details, see Read API - Parameter > Read - Order.
For information on the Fields that can be specified, see Activity - Field List.

 

Result Values

When the processing is successfully completed, “200” is returned to the Response Header as the HTTP status, and the value that is described in Output Values can be acquired.

If an error occurs, a value other than 200 is returned.

 

Output Values

出力値はXML形式で取得できます。

Tag Definition
Activity Route element including the Activity that meets the conditions.
The number of acquired data is set for Count, and the index of the acquired data is set for Start. Start is the index beginning with 0.
Lists every Activity as the Item elements.
 Total Attribute of the Activity. Indicates the total number of records that can be acquired under the specified search conditions.
 Count Attribute of the Activity. Indicates the number of records of the data acquired this time.
 Start Attribute of the Activity. Indicates the start index of the data acquired this time.
Code This is the code that represents the processing result. For details, see Result Code List.
Item Indicates one piece of Activity information. Includes a Field element.
 Field Stores the value of the specified item.
For the names of the elements, see Activity - Field List.

 

Activity Read Sample

This sample code shown below is not encoded. In the case of an actual Request, encoding/decoding may be necessary depending on the content.

The following sample uses Activity Read to acquire the Activity ID, Resource, Resource ID, and Activity Participants.

Input Parameter

https://{Request URI Host}/v1/activity?partition=999999&field=Activity.P_Id,Activity.P_Resource,Activity.P_ResourceId(Job.P_Id),Activity.P_Title,Activity.P_EventParticipants(User.P_Id,User.P_Name) 

 

Output XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Activity Total="12" Count="2" Start="10">
 <Code>0</Code>
 <Item>
  <Activity.P_Id>1</Activity.P_Id>
  <Activity.P_Resource>3</Activity.P_Resource>
  <Activity.P_ResourceId>
   <Job>
    <Job.P_Id>10001</Job.P_Id>
   </Job>
  </Activity.P_ResourceId>
  <Activity.P_Title>Sample Activity 1</Activity.P_Id>
  <Activity.P_EventParticipants>
   <User>
    <User.P_Id>1</User.P_Id>
    <User.P_Name>Consultant 1</User.P_Name>
   </User>
  </Activity.P_EventParticipants>
 </Item>
 <Item>
  <Activity.P_Id>2</Activity.P_Id>
  <Activity.P_Resource>3</Activity.P_Resource>
  <Activity.P_ResourceId>
   <Job>
    <Job.P_Id>10002</Job.P_Id>
   </Job>
  </Activity.P_ResourceId>
  <Activity.P_Title>Sample Activity 2</Activity.P_Id>
  <Activity.P_EventParticipants>
   <User>
    <User.P_Id>2</User.P_Id>
    <User.P_Name>Consultant 2</User.P_Name>
   </User>
   <User>
    <User.P_Id>3</User.P_Id>
    <User.P_Name>Consultant 3</User.P_Name>
   </User>
  </Activity.P_EventParticipants>

 </Item>
 ...
</Activity>

 

 

Was this article helpful?
0 out of 0 found this helpful