Delivering JustAsk content to an SFTP server
Requirements
Section titled “Requirements”Your admin must enable the SFTP delivery destination.
1. Configure the delivery settings
Section titled “1. Configure the delivery settings”- Navigate to a published dashboard.
- Click File > Deliveries & Alerts. The delivery options will display on the left side of the page.
- Fill in the following:
- Delivery — Select Schedule or Alert.
- Send — Select the content to be delivered.
- Destination — Select SFTP.
- Name — Enter a name for the delivery.
If creating an alert, use the Alert tab to define the conditions that must be met to trigger the delivery.
2. Configure the delivery schedule
Section titled “2. Configure the delivery schedule”In this step, you’ll define the cadence for the delivery:
- For schedules, this determines when JustAsk will deliver the specified content to the destination
- For alerts, this tells JustAsk when to check if the current query results meet the conditions required to send the delivery
Schedules can be defined using the visual options or with cron:
Visual schedule builder
Use the UI options (Daily, Weekly, etc.) to select a time period.
By default, schedules are set to send in the local timezone of the delivery creator’s computer. Use the Times are in drop down to change the timezone.
Custom cron schedule (Advanced)
A cron expression is a string that describes the individual details of a schedule:
| Order | Unit | Allowed values | Allowed special characters |
|---|---|---|---|
| 1 | minute | 0-59 | * , - / |
| 2 | hour | 0-23 | * , - / |
| 3 | day of month | 1-31 | * , - / L W ? |
| 4 | month | 1-12 or JAN-DEC | * , - / |
| 5 | day of week | 1-7 or SUN-SAT | * , - / L W ? |
Using cron, you can create schedules like the following:
0 9 ? * * *30 6 L * ? *45 8 ? * MON-FRI *JustAsk uses Amazon Web Services’ (AWS) syntax for cron expressions. Refer to the AWS documentation for more information. By default, the most frequent you can configure a schedule is hourly.
3. Select format and filter options
Section titled “3. Select format and filter options”In the Dashboard or Chart tab, you can:
-
Select the format of the content, such as PNG, PDF, XLSX, or CSV.
-
Lightly customize the contents and layout, such as expanding tables to include up to 1,000 rows, hiding filter values, or arranging tiles in a single column.
-
Select the page(s) to include in the dashboard delivery. This is applicable only to advanced layouts with multiple pages.
Note: PNGs can only include one page. You’ll need to create multiple deliveries to output a PNG for each page.
-
Override the query timezone for the delivery using the timezone picker. The picker label changes based on whether Personalize delivery with recipient user attributes is enabled (Recipient’s timezone when enabled, Default timezone when disabled).
This setting affects the content of queries included in the delivery, not the timing of the delivery itself. Use the Schedule tab to define when content should be delivered.
-
Set filter or control values for the delivery. Some formats will have additional customization options. PDF formats, for example, will allow you to specify the orientation and page size for the PDF.
For dashboard deliveries, the default filters and controls will automatically be applied upon creation. Subsequent default filter value updates will not change the filter values set for existing deliveries.
4. Configure SFTP settings
Section titled “4. Configure SFTP settings”To finish setting up the delivery, click the SFTP tab and enter the following:
- The Address of your SFTP server in the format
sftp://hostname/optional/path— for example,sftp://ftp.example.com/incoming/. The address must start withsftp://. Do not include the port or username in the address; enter those in the Port and Username fields below. - The Port of your SFTP server
- The File name you want the delivery to have, without an extension. Mustache references are supported.
- An SFTP user’s Username and Password. JustAsk will automatically encrypt the password after the delivery is saved.
5. Test the delivery
Section titled “5. Test the delivery”If you want to test the delivery before saving, click the Test Now button in the bottom left corner of the page. This will send the dashboard/chart to the destination using the current settings. For example, using Test Now would send the delivery to all Recipients.
6. Save the delivery
Section titled “6. Save the delivery”When finished, click Save to create the delivery.