As described in https://github.com/sul-dlss/folio_client/issues/5, there is a jobExecutionId present in an uploadDefinition returned in the first step of the data-import load process. Once the data-import step to processFiles runs, the jobExecutionId can be used to check that records were created. If records were successfully created, then it is possible to look up the HRID of the new instance record:
GET /metadata-provider/journalRecords/{jobExecutionId} returns a response such as:
The HRID we want to save in the ETD database is the entityHrid for the records of entityType INSTANCE. In the response above, it's in00000000010.
This lookup could be included in the data-import process, and the entityHrid returned to the consumer (usually hydra_etd) so it could save it in its db.
As described in https://github.com/sul-dlss/folio_client/issues/5, there is a
jobExecutionId
present in anuploadDefinition
returned in the first step of the data-import load process. Once the data-import step to processFiles runs, thejobExecutionId
can be used to check that records were created. If records were successfully created, then it is possible to look up the HRID of the new instance record:GET /metadata-provider/journalRecords/{jobExecutionId}
returns a response such as:The HRID we want to save in the ETD database is the
entityHrid
for the records of entityType INSTANCE. In the response above, it'sin00000000010
.This lookup could be included in the data-import process, and the entityHrid returned to the consumer (usually hydra_etd) so it could save it in its db.