Flow designer is creating a new choice value instead of using the existing one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-30-2024 04:42 AM
Hello Community,
I am facing an issue where Flow Designer is creating a new choice value in a Choice Field instead of selecting an existing choice from the predefined list. I have configured the flow to retrieve a value from a previous record, but it seems that the flow is not matching any of the existing choices and is creating a new value in the field. The newly created value is shown in blue. (In the screenshot, the "3" at the bottom). What is the best way that the flow only uses existing choice values and does not create new ones?
I would be very grateful if you could help me.
Regards,
Beyza
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-30-2024 04:50 AM
it means that choice value is not present in sys_choice for that field
Did you confirm that the value it's trying to set is present in that choice list?
If the value you are trying to set is not present ensure it's added as a choice value for that field
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-30-2024 05:12 AM
Hello Ankur,
Thank you for your quick response. I created a sys_choice with the options 0, 1, 2, 3, 4, 5. By default, I want it to take data from the previous record. However, instead of taking a value from the choice list I created, it creates new one. As you can see in the screenshot, instead of selecting "3" from the choice list, it creates a new "3," which appears in blue.
Regards,
Beyza
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-30-2024 05:24 AM - edited ‎12-30-2024 05:24 AM
Hi @beycos ,
Can you share the script that you wrote? That would be helpful to resolve this.
Regards,
Dhanraj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-30-2024 05:35 AM
those are the choice labels and not values
when flow sets choice it takes value and not label
you should have the correct choice values between the records the 1 from where you are taking and the 1 to which it's going to set
Both the records are from same table?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader