- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2024 06:37 AM
Hello everyone,
@Ankur Bawiskar if you can please help on this.
I am trying to populate assignment group of catalog task based on RITM requested for location through flow designer.
The script is working fine with indexOf but this might not give correct results if required text e.g Noida or Chennai is at last or in middle position of location .
Below is the one that I used in script of assignment group of flow designer:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2024 07:08 AM
Its not complicated, it will work like contains search only.
Just use this
if (locations.toString().toLowerCase().indexOf("noida")>-1|| locations.toString().toLowerCase().indexOf("chennai")>-1 )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2024 07:42 AM
Ohk great then I will try this and confirm you soon. Thanks a lot for your help, I’ll update you by tomorrow if it works or not.
Thanks,
Harsha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2024 07:16 AM
I have no idea, no idea how and where is the data coming form
Too little info to go on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2024 07:24 AM
Exact requirement is that assignment group of catalog task should populate with groups created with location names and it should take those groups whose name matches with requested for location names.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2024 07:39 AM
What does this exactly mean.. does it check if noida or chennai is available in locations at any position?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2024 07:41 AM
The script i gave will check for Noida or Chennai preset at any position in the locations string.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2024 07:42 AM
Ohk great then I will try this and confirm you soon. Thanks a lot for your help, I’ll update you by tomorrow if it works or not.
Thanks,
Harsha