Skip to main content
manjit.1486
Known Participant
Dec 2, 2023 6:21 AM UTC
Solved

Generate download link when clicking on button

Hi there,

I have created a button to generate CSV file but after clicking on button- page redirects to home page. 
I want to create document link when clicking on button so that file get downloaded. How can I do this in interface?

Thanks

    mikes0011
    mikes0011Answer
    Brainy
    Dec 5, 2023 5:51 PM UTC

    thanks for confirming - if you're willing, please hit 'verify answer' (etc) when you get a chance.

    The Expression Guru

    22 replies

    konduruc733182
    Inspiring
    Dec 2, 2023 12:28 PM UTC

    Hello manjit.1486,

    Does this button trigger a Start process? If so I would recommend you to use a Record/Related actions to perform this and try using a User Input task where the user has a summary of what kind of document and what data is there and so on, add a document download link using a!documentDownloadLink() pass your generated document as the value here. 

    I guess this would help and this is what you were asking for. If not please ignore.

    manjit.1486
    Known Participant
    Dec 4, 2023 6:06 PM UTC

    I am using rich text and startprocess link. Want to generate a file document link.

    mikes0011
    Brainy
    Dec 4, 2023 6:45 PM UTC
    startprocess link

    You wouldn't use a!startProcessLink() for this.  You'd use a!StartProcess(), run the process with chaining enabled, and pass the generated document Id back into your interface.

    The Expression Guru