how to create filter condition for a business rule using rest API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2023 11:52 PM
Hello,
I am trying to create a business rule for Incident table from my third party tool using rest API posting to
I am using following payload = {
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2023 12:00 AM
the condition field requires an encoded query
this looks fine
"filter_condition": "sys_updated_bySTARTSWITH" + username + "^EQ",
Did you try with some simple condition?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2023 08:13 AM
Hi Ankur,
Thanks for the reply.
I did not try with any other simple filter condition. How do I do that?
I saw this sys_updated_bySTARTSWITH" + username + "^EQ", in
a template when I manually created the business rule, so I am using the same in rest API.
Could you please advise as how to write simple filter condition ?
Appreciate your help
Regards