Got two errors on cron from Automate actions.
1. Error: Process: #77, Actions for the process: #250 - Undefined constant "id" on line 6
2. Error: Process: #76, Actions for the process: #247 - trim(): Argument #1 ($string) must be of type string, array given on line 3
Here's the code:
$strkw=[1021];
$strkw=removewhitespace($strkw);
$entity_id=67; //get entity ID
$item_id = [id]; //get current item ID
Undefined constant "id"
-
- Posts: 1
- Joined: 05 Jan 2022, 19:11
- Name: Rosauro Dalangin
- Location: Philippines
- Company Name: Rosauro C. Dalangin
- support
- Site Admin
- Posts: 6231
- Joined: 19 Oct 2014, 18:22
- Name: Sergey Kharchishin
- Location: Russia, Evpatoriya
Re: Undefined constant "id"
To get current item ID you can have to use $item_id
see https://docs.rukovoditel.net/index.php?p=125
see https://docs.rukovoditel.net/index.php?p=125