BR not working when script included called in condition section
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2024 06:44 AM
Requirement- Need to update "warranty expiration" feild for below filter condition in alm_hardware table.
Issue- I have written script include and called that script include in BR in condition section. But BR is getting worked for all assets without checking for condition.
Below is the BR & script include. Please suggest if i am missing anything here.
filter query-
BR-Before-->update or insert on alm_hardware table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2024 06:58 AM
Hi @Shweta Maurya ,
Can u try writing the asset filter function code outside the initialization function & then try. I think it will work.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2024 07:01 AM
I think it is outside the initialize function only and script include in working fine I checked through logs it is returning correct asset. But BR is not working as per the condition.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2024 07:04 AM
i think u should also return false in order to restrict.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2024 07:19 AM
I tried. Still same issue