Simple if condtion for option sets

Hey I’m trying to have a simple way to do an

if text = name of option set
return the option set.

I can get it creating a million actions before creating the new record and create the condition to match. But that would be a mess.

Couldn’t find any extensions, I’m thinking of making it but maybe its a really simple task.

Hi there, @Clasicwebtools… I might not understand what you are trying to do, but you can get a particular option from an option set by getting all of the options and then using the :filtered operator to get to a specific option. It that what you are trying to do?

Best…
Mike

2 Likes

I’m not entirely sure I understand what you’re asking…

But I think you just need to use Get all options with a filter (text = this option’s display)… although that might not be what the question was?..

2 Likes

Thanks @mikeloc and @adamhholmes I think you are both right and that is going to work. I knew it was a basic thing.

For documentation purpose:
I’m triggering a backend workflow via API that come as string and I needed to create a new record that contains an Option Set. So get all optionsets :filtered with This element’s display is my string value and get first item should work.

2 Likes

Yep, that’s the way to do it.

1 Like