Okay. I can work with this. But I'm really wanting to understand what is happening, because I've never had it happen this way before.
I created a standard two option field in Dynamics 2011.
When coding the plugin I'm getting the reverse value of what I'm expecting.
Here is the code:
bool trigger = preImageEntity.GetAttributeValue<bool>("trigger");
When Yes is marked on the form, it comes back as False.
When No is marked on the form, it comes back as True.
I double checked the Options. Yes = 1 and No = 0.
Like I said, I can work with this, I'm just wondering why it's not returning the values I'm expecting.
I'm expecting Yes = True and No = False.
Thanks.
*This post is locked for comments
Thank you!
That makes perfect sense and can't believe I missed it. Appreciate it.
If I understand this correctly, you are retrieving value from PreImage. That means value stored in Database before change in UI.
The current value from UI will be in Target entity.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156