Hello,
I am trying to retrieve the highlighted value in my expression, how can I do it?
—>

This is a query for the next request that matches rel=next
Thank you for your help, I’m learning a lot with you
Hello,
I am trying to retrieve the highlighted value in my expression, how can I do it?
This is a query for the next request that matches rel=next
Thank you for your help, I’m learning a lot with you
Could you please share output of previous node? Sharing workflow might be also helpful “_”
[
{
"body": {
"header": {
"statut": 200,
"message": "OK",
"total": 75,
"debut": 0,
"nombre": 20
}
},
"headers": {
"x-frame-options": "SAMEORIGIN",
"cache-control": "no-cache",
"access-control-allow-origin": "*",
"access-control-allow-methods": "POST,GET",
"set-cookie": [
"INSEE=138986250.20480.0000; expires=Wed, 06-Jul-2022 15:24:53 GMT; path=/; Httponly; Secure",
"pdapimgateway=2890449674.22560.0000; expires=Wed, 06-Jul-2022 15:24:53 GMT; path=/; Httponly; Secure"
],
"vary": "Accept-Encoding",
"expires": "Thu, 01 Jan 1970 00:00:00 GMT",
"x-total-count": "75",
"access-control-allow-headers": "authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction",
"link": "<https://api.insee.fr/entreprises/sirene/siret?q=siren%3A266900273%20AND%20etablissementSiege%3Afalse&nombre=15&debut=60>; rel=\"last\", <https://api.insee.fr/entreprises/sirene/siret?q=siren%3A266900273%20AND%20etablissementSiege%3Afalse&nombre=20&debut=0>; rel=\"first\", <https://api.insee.fr/entreprises/sirene/siret?q=siren%3A266900273%20AND%20etablissementSiege%3Afalse&nombre=20&debut=20>; rel=\"next\"",
"content-type": "application/json;charset=utf-8",
"date": "Wed, 06 Jul 2022 15:04:53 GMT",
"transfer-encoding": "chunked",
"connection": "close",
"strict-transport-security": "max-age=100000; includeSubDomains"
},
"statusCode": 200,
"statusMessage": ""
}
]
This
That should work:
{{$node['HTTP Request1'].json('headers').link.substring($node['HTTP Request1'].json('headers').link.lastIndexOf('<') + 1, $node['HTTP Request1'].json('headers').link.lastIndexOf('>'))}}
But this is spaghetti
<
and index of last >
. You would like this and struggling with that LMK I’ll help youGood luck ;))
Thank you, it’s true that it’s not great, but hey it does the job