How to add full Post Raw Body within a Collection Variable to use in the next api call?

How to add full Post Raw Body within a Collection Variable to use in the next api call?

I have the POST body parameters:
{

"announcementId": 0,

"header": "Delete Testing slide through API - Header - SS -Time Lapsed should not display",

"body": "Delete Testing slide through API - Body - SS Time Lapsed should not display",

"announcementType": 0,

"imageUrl": "",

"updateDate": "2020-09-22T23:24:10.382Z",

"isAlertBanner": true,

"startDate": "2020-08-29T02:21:22.382Z",

"endDate": "2020-09-20T23:24:10.382Z",

"enabled": true,

"sortOrder": 1

}

And i want to add all the values within a collection or environment variable to i can verify after clicking on send, that that is the response that i get in API 2

this is what i got:

let header = JSON.parse(pm.request.body.raw).header;
pm.environment.set(‘header’,header);

this works for one element within the POST but i want the whole thing.

If you want the whole thing, why not just set your variable to the body?

pm.environment.set('body', pm.request.body.raw);

Thank you so much that worked perfectly… your awesome … i have a hard issue that i am dealing with if you could help me with this … with your help i have been able to write the loop and array statement but for some reason its not working how i attend it to: