Help with adding option to send SMS from Google sheet

I have followed this guide to create an app to send SMSs from a google sheet.

I need to add an extra "fetch Messages" button to be able to choose between two deferent sheets.

I have had an attempt but it just come up with errors.

Can somebody point me in the right direction.

Don't show us the video.. show us your attempt in blocks

You need to edit the script to accept parameters, specifically the SHEETNAME, for both the doGet and the doPost functions.

You need to edit your blocks to send the SHEETNAME parameter with the script url for both the doGet and the doPost functions

Here are my blocks.