1

Closed

column name mapping for activities goes wrong - worked with older source code

description

Server was unable to process request..
0x80041103
'PhoneCall' entity doesn't contain attribute with Name = 'phonecallid'.
 
latest source code: 55849
[XrmEntity("phonecall")]
public class PhoneCall : IXrmEntity
{
    [XrmFieldMapping("activityid", CrmType = AttributeType.PrimaryKey)]
    public Guid Id { get; set; }
....
 
IEnumerable<PhoneCall> allacts = crmService.RetrieveMultiple<PhoneCall>(qe);
 
......
 
Looks like there is an automatic mapping between entityname phonecall and the phonecallid where this entity has a keycolumn with the name activityid
Closed Feb 23, 2010 at 7:34 PM by kgooding
Glad the update is working for you :)

comments

kgooding wrote Feb 22, 2010 at 9:25 PM

Hi Bob,

Good to hear from you again. Sorry, I broke this with my last update - you're right, I implemented automatic mapping for this field.

This should be fixed now, let me know if you continue to have problems with it.

bvschie wrote Feb 23, 2010 at 7:11 AM

downloaded the source - it's working
Thanks.
Still love the ease of my own classes mapped to the CRM through this toolkit.

wrote Feb 23, 2010 at 7:34 PM

wrote Feb 13, 2013 at 12:37 AM

wrote May 15, 2013 at 12:11 AM