- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
I have a script include that work when called from 'Scripts - Background' but when called from a filter it does not work. I hardcode a sys_id in the script just to make it simple and so I know there shouldn't be a script issue. I set it to client callable, and it ask me for a role. I selected admin, since I am an admin in DEV. Not sure what I am missing to get it to work from a filter.
Works with hardcode sys_id in filter:
But not with a call to the script:
Here is the script include:
This is it ran from Scripts - Background:
I am wondering if it was a access privilege issue, but I made sure the role was Admin. I even tried elevating my role to security_admin.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Refer below for sample,
If this helped to answer your question, please accept the solution and close the thread.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
I should have mentioned why. It appears there was nothing wrong with my original code. I just needed to make sure I checked 'sandbox enabled'. That is the reason I was getting a NULL response.
Thanks Bhuvan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Oops, wrong screen print. The j was cut off. Look at this one please:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Please unchecked the check box "client callable".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hi @KW68 ,
You pasted wrong in operand field and it is "avascript:new <yourScriptIncludeName>"
Make it "javascript:new <yourScriptIncludeName>". It should work
Thanks,
Bhimashankar H
-------------------------------------------------------------------------------------------------
If my response points you in the right directions, please consider marking it as 'Helpful' & 'Correct'. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Thanks for the quick response.
I include the wrong screen print in the original post. I updated it with the correct one. Must have been after you saw the post. To me it looks like the script is being called but is returning NULL.