Trigger not getting correct url from DB record

Hello,

I started using triggers (great work as usual!) and I spent almost 30 min not understanding why the one I created was not running properly. I found out that the reason it was not running was that the url value I was passing to the "Get File Resource" action was incorrect as it was provided by the trigger output.

Digging more deep, this is I what I can see as trigger output (below). As you can see the url parameter contains the word "backend" (I suppose a variable not interpreted properly by the code) instead of my xano path.

I currently fixed (?) it by replacing the word with my xano path.

Is this correct?

{

"new": {

"id": 00,

"Origin": "",

"Result": "",

"processed": false,

"azienda_id": 00,

"created_at": 1718341433033,

"CSVFileSent": {

"url": "https://backend/vault/UDyK3CPA/BuTZ_znbpgk/cYZnKg../text.csv",

"meta": {},

"mime": "text/csv",

"name": "text.csv",

"path": "/vault/UDyK3CPA/BuTZ_zAb8271IMOBHwREFVnbpgk/cYZnKg../text.csv",

"size": 104200,

"type": "",

"access": "public"

},

"processed_at": null

},

"old": {},

"action": "insert",

"datasource": "live",

"table": "mvpw1_",

"trigger_id": "3"

}

1 reply