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):
Tagged:
0