Skip to main content
manjit.1486
December 2, 2023
Solved

Generate download link when clicking on button

  • December 2, 2023
  • 22 replies
  • 0 views

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

    Best answer by mikes0011

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

    22 replies

    konduruc733182
    December 2, 2023

    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
    December 4, 2023

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

    mikes0011
    Brainy
    December 4, 2023
    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