Issue with custom function

Issue with custom function

Hello. I am trying to use a script that changes status when a technician replies to a request. I am using the scripts on this discussion https://pitstop.manageengine.com/portal/en/kb/articles/update-request-status-upon-receiving-a-new-reply-11-10-2023#:~:text=Use%20case:,to%20%22On%2DHold%22. but when the custom trigger runs, I keep getting the error: Argument type mismatch - Found 'TEXT' but Expected '[KEY-VALUE, TEXT, LIST]' for the function 'get'

There was also an inbuilt global function for updating requests that I tried to use but that also returns the same error. Any ideas on how to fix this? I believe the problematic block is:


                  New to ADSelfService Plus?