I have a script below to trigger a webhook when a record enters a view. I need to pass two parameters (recordID and UserUuid).
The problem: I get the error message “This expression is not callable. Type ‘string[]’ has no call signatures. (2349)" on the variable userUuid”
The possible cause: because variable is Array<string>
rather than just string
, I need to reflect it in the below code.
I got the script on the internet, so I kindly request if someone could let me know the change to apply in the code to make the array callable?
Thank you so much
let inputConfig = input.config();
// AIRTABLE REALTIME TRIGGER TEMPLATE
let webhook = 'https://hook.us1.make.com/gks2o5k90h0f2fggmdy6u4uilamaegru'
let queryParams = `/?id=${inputConfig.recordID}&user=${inputConfig.userUuid`
const returnedPayload = await fetch(`${webhook}${queryParams}`);