on ‎2024 Apr 24 1:19 PM
Dear All,
I am working on MDK app in which I need to make a REST "PUT" call to a dynamic url generated in previous rest api calls and pass the Binary file content in body. I am not really sure how to approach this as I have a file path where the template word file is stored.
The dynamic url is a pre-signed url from Adobe Document Services where this file from my machine needs to be uploaded.
Best Regards,
Geet
Request clarification before answering.
First you will need the root of the REST service defined as a destination in Mobile Services with appropriate authentication. Then you can use clietnAPI sendRequest method to create your PUT request specifying the URL as the path starting with the destination name and subpath as needed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @bill_froelich ,
I am kind of struggling to get this working:
1. Created a destination in mobile services.
2. Created MDK service
3. Used it using sendRequest:
4. I always get a Forbidden -403
However, the same credentials and code work for fetch( ) or via Postman and also via Build Process Automation/Build Apps.
I also tried doing it via an action and I get a 401- Unauthorized
Could you please point me in the right direction on how to use clientApi.sendRequest successfully as the fetch() works fine for web app but for mobile devices is does not work.
Best Regards,
Geet
| User | Count |
|---|---|
| 11 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.