Create ACL not working on table level.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2025 06:15 PM
I have a custom table where I need to create records of specific source_type 'XY' only and owner is not empty . I have created an create ACL with script condition as
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2025 07:01 PM
actually I don't suggest to use ACL to implement the complex condition in create. You can try set condition in "New" UI action.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2025 07:11 PM
@Di Zhang could you please elborate on this a bit more.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2025 07:22 PM
when you create a record, you need to click the New button in form. So you can add your condition to condition of "New" UI action.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2025 07:55 PM
You're on the right track with your ACL script condition, but there's a common gotcha in ACL evaluations that might be causing your issue:
Problem:
current.source_type == 'XY' might not be working because:
source_type may be a reference or choice field, and you're comparing it incorrectly.
- ACL conditions can behave unexpectedly if field values haven't been fully populated yet.
Use current.source_type.toString() to ensure you're comparing strings properly.
answer = (current.owner != '' && (current.isNewRecord() || current.source_type.toString() == 'XY'));
Add some logs and try.