Amazon S3 response with missing fields?

Hi,

I've set up an integration between NS and S3 to take files from the file cabinet and move them to an S3 bucket. Now I'd like to update NS transactions with the resulting file URLs, I see in the S3 response (if I enable the debug mode) the file location which is exactly what I need:

{
   "request": {
      "Bucket": "natbucket",
      "Key": "Bill.pdf"
   },
   "response": {
      "ETag": "\"d009398a2f768f8c37c7a998a6d12849\"",
      "Location": "https://natbucket.s3.amazonaws.com/Bill.pdf",
      "key": "Bill.pdf",
      "Key": "Bill.pdf",
      "Bucket": "natbucket"
   }
}

 

But I can't access that data in the response mapping. The only data available is shown below.

name has "Bill.pdf" and _json only has: (all the other fields are empty)

    "_json": {
    "name": "Bill.pdf"
  }

Is it possible to get the full response from S3? I can hardcode the file URL but that would be my last resource. 

Thanks!!

0

Comments

1 comment
Date Votes
  • The '_json' field is supposed to be a container field for ALL the raw API response fields that you would see in the debug logs for example.  I will ask the team over here to check on this for our S3 connector, and get a bug logged, etc...

    Luckily it looks easy enough to build the URL manually from the file name.

    1

Please sign in to leave a comment.

 

Didn't find what you were looking for?

New post