I am wondering if it is possible to fetch a job by requisitionId in Google Cloud Talent Solution. requisitionId
has to be unique across jobs so it seems like a natural candidate for looking a job up.
When a job is created the api returns a job name
that can be used to look the job up:
You can retrieve the details of a previously inserted job by sending a GET request to the Cloud Talent Solution. The URI should include the previously inserted job name returned by the original create request, as a URL parameter.
I'd like to avoid storing these names if possible. In my view storing them adds unnecessary complexity since I already have a unique requisitionId
. To be clear the API does not let you add jobs with a duplicate requisitionId
:
Job projects/{my_app_id}/jobs/{google_assigned_id} already exists. Request ID for tracking: ... Related Job requisition ID: ...
So can I look up jobs by requisitionId
?
I could parse the error message that's returned to get the job name..but that seems pretty brittle.
one can add it as custom attribute:
and then search for
requisitionId
with a custom attribute filter:this is a little redundant, but
JobQuery
has no method.setRequisitionId()
.here's the documentation.