You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to store the response from Get Worker in a environment variable automatically

Hello All,

Created a rest API to successfully Get Worker with this endpoint URL in Bruno: - "{{baseUrl}}/hcmRestApi/resources/11.13.18.05/workers?q=PersonNumber={{personNumber}}&expand=workRelationships.assignments".

Requirement is to store the href value automatically into a variable "Assignment URL"from the response data, under “assignments” array, pick “href” value where “rel”=”self” & “name”=”assignments” for the active date record range and “PrimaryFlag”=”true to get update Assignment EndPoint URL in bruno.

Want to use the stored "AssignmentURL" variable in the following PATCH call.

How to achieve this.

All suggestions welcome. Thanks, Balaji

Version (include the version you are using, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!