Hi all,
I have created a flow in which i have to check the value of the option set using condition connector. I have choice field with choices as 100, 200, 300...etc.. When comparing if i use "fieldname is equal to 200", its not working. So i am using compose and checking the value for this particular option... Which is some number 9000182..and then using this number for comparison.
Is there any better way to do it?
Thank you...
Please check below post to get the optionset label while using CDS Current environment.
https://onlinemgblog.wordpress.com/2020/08/05/cds-current-environment-get-option-set-label/
@jinivthakkar, No its not resolved yet.
As mentioned in some blogs, when choosing dynamic value there will be two fields... Claim type(value) and Claim type(type). And I should use
Claim type(value) is equal to '200'.
I am using CDS current environment trigger, and I only have Claim type dynamic field... There is no value or type fields...
I don't know what I have to do?
@varshinims08 I dont have any dynamic value so I have initialized a variable and then I have checked the condition.
@jinivthakkar I am not sure whether its is int or string, I created a field in dynamics and datatype field selected 'Choice'....
The condition i added in the above screenshot is working fine... What i did is taking claim type in compose,
then copied the output of compose which is this number 912050001 into condition.
What i wanted to know is, is there any alternative way to do this?
Example : claim type is equal to 200
But when i use value directly, it is always false.
Thank you
@varshinims08 what is the data type if you are trying to compare number type to string than the condition will never satisfied ? What is the data type which is claim type ? Int or string ?
@jinivthakkar Thank you for reply..
This is the condition i am using... I hardcoded it
And my fields data type is choice,
I am checking whether the claim type is 200 or not.
Can you please tell me why you are using initialize variable, and can you can share the screen shot for it.
@varshinims08 I just tried comparing a dynamic value with 200 and it is working fine. My condition output is true as I have set the value to 200 in dynamic string.
What is the condition that you have ? Please can you share the screenshot?
Please try like I have shown, hope this helps.
--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
ankit_singhal
7
Super User 2025 Season 1
Michael E. Gernaey
4
Super User 2025 Season 1
David_MA
2
Super User 2025 Season 1