there are many steps in order to add the button in portal apps. first add the button in code editor => <button onclick="send()" class="btn btn-primary" style="font-size: 16px; height: 50px; width: 70px; background-color: #302ce1; text-align: right;">Button</button> then add the code in JavaScript which call by send event. , so first download the file by call function name download. get the id from url then pass into json value. send the https post request to automate power flow . < script type = "text/javascript" > function send() { function download(filename, text) { var element = document.createElement( 'a' ); element.setAttribute( 'h...