Result parsing for service web request with only id

Hi,

I have a web request response that looks like this:

"responseData": {
			"status": 200,
			"statusText": "OK",
			"rawData": "d51f07d8-b5e2-48d9-bd3b-03b57864af8c"
		}

How can I get this parsed into a service variable?

I have tried this with out a succesfull result in the result parser and set id in the property mapping

return {
  "id": rawResponseData.rawData
};

Hi!

I have used this code in the result parser for an external API previously, where the response was just a string - hopefully it can work here too.

const keyArray = Object.entries(rawResponseData).map(() => {
  return {
    'accessToken' : rawResponseData,
  };
});


return keyArray

You can then map the result to a Service Variable like so:

Rhys

Thanks , that worked: Google AI gave me an improved suggestion:
as simple as this :smiley:
return { 'id': rawResponseData };