Announcements
No record found.
Hi
What's the correct way to check for no value in a pre-image.If there's no value my plugin fails where prePort = .
Entity preMessageImage = (Entity)context.PreEntityImages["InvitePortalImage"]; // get field value prePortal = (bool)preMessageImage.Attributes["new_2020portal"];
HI Stuie,
you can check like
if(context.PreEntityImages.Contains(new_2020portal") && context.PreEntityImages[new_2020portal"] != null)
Hello there,
I use this one:
context.PreEntityImages["preImage"] != null
Then, is always a best practice check for null values before get the value from an attribute.
regards,
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Muhammad Shahzad Sh... 69 Most Valuable Professional
ManoVerse 55 Super User 2026 Season 1
11manish 37