Is it possible for a snippet to get an Id from a response body then save it to a skuid model?
I’m posting to an API and getting a response like:
{
“statusCode”: 200,
“type”: “rpc”,
“tid”: 5,
“ref”: false,
“action”: “skuid.RemotingStubs”,
“method”: “proxy”,
“result”: {
“statusCode”:201,
“status”:“CREATED”,
“setCookies”:null,
“headers”:{
“Content-Type”:“application/json”,
“Content-Length”:“41”,
“referrer-policy”:“no-referrer-when-downgrade”,
“x-content-type-options”:“nosniff”,
“x-xss-protection”:“1; mode=block”,
“Date”:“Tue, 11 Aug 2020 22:31:14 GMT”,
“strict-transport-security”:“max-age=31536000; includeSubDomains”,
“feature-policy”:“geolocation; sync-xhr; microphone; camera; fullscreen;”,
“request-id”:“7db9eb68c725bcba8b3969d49d08af6c”,
“Connection”:“keep-alive”,
“x-frame-options”:“SAMEORIGIN”,
“server”:“nginx”},
“error”:null,
“body”:“{\n \"external_id\": null, \n \"id\": 1416\n}\n"}”}
}
I’d like to save the id in a custom field that has been created to store that id.
Question
Intercepting response payloads

Translate
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.