- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2024 03:31 AM
in catalog having location filed based on the value in location it will Crete sctask and assign to different different types of groups so written code in assignment group filde. Can one provide solution
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2024 03:38 AM
@Gillerla Rajesh What type of field is location? Is it a reference to cmn_location? or it is a text field?
If location is a reference then you should compare the string with the name field.
if(fd_data.trigger.request_item.variables.location.name=='Hyderabad')
Hope this helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2024 03:34 AM
Hi,
There are typos for variables. Please use variables and not varaibles.
Also, instead of passing location name you can pass sys_id of location and check.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2024 03:38 AM
@Gillerla Rajesh What type of field is location? Is it a reference to cmn_location? or it is a text field?
If location is a reference then you should compare the string with the name field.
if(fd_data.trigger.request_item.variables.location.name=='Hyderabad')
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2024 03:39 AM
Yes reference to cmn_location

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2024 03:49 AM
Then either compare the name or compare the sys_ids of location to find the match.