Passing Dynamic Key to the download tool
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I have a scenario where I am doing a two-step manual process currently:
Step1: Using a Text Input (URL1) and Download tool to generate a validation Key (after authentication)
Step2: using the Text input (URL2)+Passing the Key generated in step 1(manually) and Download tool to get the required data
I need a solution to do these steps automatically, for that I need to pass the Key generated in step 1 to the download tool dynamically. Can any expert please help achieve this?
Solved! Go to Solution.
- Labels:
- Download
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@ShareqM can you provide the download data from your first download tool? Then we can help you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I am not trying to merge data, I need the Key value generated in step1 to be passed to the download tool in step 2 automatically here:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@ShareqM After your first download tool, you will need to put a formula tool to create a field called "Authorization" and set it to "Bearer " + [Your token]. In order to get your token from the first download tool, the easiest way is usually regex. I'd be harry to help if you provide a dummy sample. Then in your second download tool, delete the authorization from the top box and instead check the box next to your authorization field in the bottom box.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Yes, I did that. Here is my workflow: and the error I am getting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Also, I have different URLs in Step 1 (Token) and step 2(outbound), so added this second URL in formula tool and checked the URL box as well for the second download Headers, image below:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@ShareqM I don't think you'll need the url in the header for the second download tool. You would just change the url field on the basic tab. If your second download tool works manually, I would just try to see what's different when you try to automate it (ie check your authorization field matches exactly, your content-type matches exactly, etc. Debugging issues with the download is very difficult and just trial/error. You could also try starting with your manual entries and slowly chaining things 1 at a time.