wide-london-14130
08/14/2023, 9:15 PMbumpy-butcher-41910
08/14/2023, 9:48 PMbumpy-butcher-41910
08/14/2023, 9:48 PMbumpy-butcher-41910
08/14/2023, 9:48 PMbumpy-butcher-41910
08/14/2023, 9:49 PMbumpy-butcher-41910
08/14/2023, 9:49 PMhttps://cdn.discordapp.com/attachments/1140755534631415951/1140764213162283078/Screenshot_2023-08-14_at_5.49.23_PM.png▾
bumpy-butcher-41910
08/14/2023, 9:51 PMhttps://cdn.discordapp.com/attachments/1140755534631415951/1140764605451358378/Screenshot_2023-08-14_at_5.51.10_PM.png▾
wide-london-14130
08/14/2023, 10:53 PMripe-van-49559
08/15/2023, 12:43 AMmysterious-ram-99853
08/15/2023, 1:13 AMmysterious-ram-99853
08/15/2023, 1:13 AMmysterious-ram-99853
08/15/2023, 1:13 AMmysterious-ram-99853
08/15/2023, 1:14 AMbumpy-butcher-41910
08/15/2023, 2:08 PMbumpy-butcher-41910
08/15/2023, 2:09 PMbright-magazine-792
08/18/2023, 12:35 AMIs it possible to use the value of workflow.interestedProduct to determine which file is sent to the user? if so, how can i learn how to do this
On this, you can try out below example:
Step 1: Create a workflow variable with type as Object
. And add your default values. (in form of productname: pdf URL)
Step 2: Create a workflow variable with type as Array
Step 3: Add an Execute Card, and write workflow.menu=Object.keys(workflow.orders)
This is to store all the product names in the array variable.
Step 4: Add a Single Choice Capture Card, store result in a string variable, in choices, click on {x}
for super input and add @workflow.menu
Step 5: Add a File Card, again click on {x}
and write {{workflow.orders[workflow.interestedProduct]}}
This expression will find the pdf of the selected choice and use it as a file
In Title, add @workflow.interestedProduct
to display the selected Product Name as title of the file.
https://cdn.discordapp.com/attachments/1140755534631415951/1141893185757528105/image.png▾
https://cdn.discordapp.com/attachments/1140755534631415951/1141893186072088596/image.png▾
https://cdn.discordapp.com/attachments/1140755534631415951/1141893186369892362/image.png▾
https://cdn.discordapp.com/attachments/1140755534631415951/1141893186667692042/Screenshot_2023-08-18_at_6.03.40_AM.png▾
https://cdn.discordapp.com/attachments/1140755534631415951/1141893186885783652/Screenshot_2023-08-18_at_6.05.38_AM.png▾
bright-magazine-792
08/18/2023, 12:45 AMwide-london-14130
08/18/2023, 1:56 PM