REST Post Multipart Form-Data + File Upload Issue
I’m having trouble correctly formatting multipart form-data to be sent as the body of a REST Post request along with a single file upload. I’ve managed to get the Post request to correctly send in Postman with the required key/value pairs and a test file: However, when attempting to replicate this in SnapLogic I am unsuccessful. I’ve managed to correctly map the key/value pairs in a mapper, and have created the following JSON in a JSON generator using my mapped values: I’ve used my “entity” object as the HTTP entity in my Post request, and pointed to a local test file for upload in my REST Post snap: Is my approach to compiling the form-data correct, or no?30KViews0likes10Comments401 Error using Https in API REST GET call
In house API call that works well in all browsers and postman returns “REST API service endpoint returned error result: status code = 401, reason phrase = Unauthorized, refer to the error_entity field in the error view document for more details” when using the REST snap The following was tried and the issue persist -Create account from REST GET similar to what is used to access API from browser (NTLM) -Trust all certificates settings checked on REST snap -‘Keep-alive’ connection added to Header settings -Cookie details added to Header settings Does anyone have any suggestion to assist in getting this error fixed15KViews0likes33CommentsPassing credentials in JSON body to authorization endpoint
Some services I am working with require a REST Post to an authorization endpoint obtain a session token to be used in the header in subsequent REST calls. The authorization endpoint requires the account credentials to be passed in a JSON object in the request body. This can be accomplished easily enough in SnapLogic by using a JSON Generator and a REST Post Snap. However, this is not ideal from a security or account management perspective because the account credentials are stored directly in the pipeline in plain text and not as an account object. Is there a better way to store credentials and use them in a pipeline for services that use this kind of authentication pattern?Solved14KViews0likes12CommentsREST GET: Not working for Smartsheet API
Hi, I’m trying to fetch data from a sheet using Smartsheets sheets API. I’ve generated the access token, and it’s working fine with Postman. Please see below it’s returning the data, but when I do the same using Rest Get, it’s not producing anything. And also, with Smartsheets API, even if I pass the wrong sheetid its starts validating and does not throw any error. If it’s working in POSTMAN, it should work with REST Get also. Please let me know what I’m missing. Note: I’ve also tried using the Oauth2 method by creating an account for Smartsheets, and I was able to refresh the token as well, but with that approach, it is also not working.Solved12KViews0likes20CommentsPagination in REST API
A very good explanation of how to implement pagination in REST API in this below blog post: SnapLogic – 4 Feb 16 REST GET and the SnapLogic Public APIs for Pipeline Executions As a part of a wider analytics project I’m working on, analyzing runtime information from the SnapLogic platform, I chose ... When I try to implement the same(I am extracting data from survey monkey api), I have noticed that when the “Next URL” is executing it is ignoring the query parameters provided.As shown in below image, when service URL is executing it’s getting right records considering all input query parameters i.e total:3043 but when “Next URL” is hitting it is extracting all records i.e. total : 61896 How to include query parameters in “Next URL” to get required data?9.4KViews1like9CommentsHow to stream a binary PDF file to a file using Snaplogic
I am trying to stream a binary PDF file to a file using Snaplogic. The equivalent would be to the following command: curl “http://www.pdf995.com/samples/pdf.pdf” --output …/out/pdf.pdf Is this possible? Note the output doesn’t seem to be amenable to Document to Binary or any of the snaps I’ve tried.Solved8KViews0likes6CommentsRest PUT - Error when using upload files field
Hi everyone, I am able to upload incoming data into blob storage with the below pipeline but not the format I am expecting. I need to do it this way: Get Data ->CSV Formatter->File Writer-> Upload to SLDB → Rest PUT (use the file as an expression in Upload files). But I am facing the below error doing so. Any Suggestions?7.9KViews0likes10CommentsPassing Bearer Token to REST GET
I received a token from a authorization REST POST call. I now need to pass this token as the bearer token of a REST GET call. How can I correctly pass my token to the REST GET snap? I was able to do this successfully using Postman (see screen pic). Now I just need to create a Snaplogic solution that will do the same. Thanks, Alex6.7KViews0likes2CommentsHow to bring API JSON text into REST Post Snap?
Hi all, I am trying to use a JSON file to feed in the body of a response that is working in Postman with curl code like this: In SnapLogic I added the raw body in a JSON generator and want to feed that into a REST Post Snap. My pipeline looks like this: With no headers nor queries in Postman, only the JSON/raw body and the service URL, I retrieve results with no issues. However, with Snaplogic I am not receiving output. Has anyone done this? I am told I cannot incorporate the credentials into the headers, it must be in the body…but how do I reconcile this with SnapLogic? No one on my team has worked on something externalized that has functioned in this way. Thanks!6.3KViews0likes8Comments