Hello.
I have entity Contact.
How can I get Contact's last name correctly? (Last name - is the name in Interface)
I don't bring my code here, I want to known how it is doing correctly?
Thank you
*This post is locked for comments
Hello.
I have entity Contact.
How can I get Contact's last name correctly? (Last name - is the name in Interface)
I don't bring my code here, I want to known how it is doing correctly?
Thank you
*This post is locked for comments
Hi LeonardBertone,
Could you try something like below code.
if (context.InputParameters.Contains("Target") && context.InputParameters["Target"] is Entity) { // Obtain the target entity from the input parmameters. Entity entity = (Entity)context.InputParameters["Target"]; if (entity.Contains("lastname")) { string lastName = entity.GetAttributeValue<string>("lastname"); } }
Thanks
Justin Jose
The field name is 'lastname' (all lower-case)
André Arnaud de Cal...
292,865
Super User 2025 Season 1
Martin Dráb
231,723
Most Valuable Professional
nmaenpaa
101,156
Moderator