Need Help with Assignment Group Configuration in ServiceNow Based on DDD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2025 10:22 AM
Hello, everyone!
I need some help with a configuration in the ServiceNow service portal. I have an item called "Parking Sticker Request". In this item, I created a variable of type Simple Text named "WhatsApp Number". When the requester fills out the form and enters their phone number with the area code (DDD) and submits the request, I want to implement the following logic:
- If the DDD is "(15)", the Assignment Group field of the generated task should automatically be set to the "Atalia" group.
- If the DDD is different from "(15)", the Assignment Group should be set to another group.
The item is associated with the Request Item (sc_req_item) table, and after the submission on the portal, a task is generated. I need this logic to be applied at this stage (in the task).
I tried implementing this using a custom Action Script, but I couldn’t get it to work. Could someone help me with this?
Thank you in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2025 01:11 AM
Hi @Jonatas6 ,
Is the Area code a separate field from the Whatsapp Number field.
You can check from the flow, if Area code is 15, set Assignment group
Else,
set Assignment group.
If the above information helps you, Kindly mark it as Helpful and accept the solution.
Regards,
Najmuddin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2025 10:51 PM
Hi Najmuddin Mohd,
The DDD is not separated. The registration applicant is done manually and this (example: 15 9558-5555) field (variable) has a mask. How do I adjust the existing flow with this logic? Would it be a custom Action Script? Tell me the steps please?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2025 10:27 AM
Hi @Jonatas6 ,
Why not create an Extra field for Area Code, or if you do not
Then, you check if variable starts with 15 then Assignment group is
Else,
Assignment group is
You can just use If Else block for this. Custom Action Script is not requried.
If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Najmuddin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2025 06:49 PM
I didn't want to create another field. In the flow designer, there is no start with in the if. Knowing that the field has a mask, what do you recommend?