Add Task if based on sub-form input
Hello,
I have Brands containing a Voting sub-form.
Voting contains the following fields:
- User
- Rating
I would like to create a workflow so that whenever I add a Voting User to a Brand, it will create a task for that user if the Rating is null.
I have the following deluge script but I get:
`Error at line: 1 Improper Statement`
- for each Vote in Voting [ Rating != 0 ]
- {
- insert into Add_Task
- [
- Added_User = zoho.loginuser
- Assignee = Voting.users
- Related_Brand = Brand_Name
- Status = Open
- Task_Name = Vote on Opportunity
- ]
- }
Thanks for your help