locked
FromDynamicEntity keyword replacement in crm 2011 plugin RRS feed

  • Question

  • Hi,

    We are upgrading crm 4.0 plugins to crm 2011, we have following syntax for crm 4.0 ,Request your help in changing into crm 2011,Basically wanted to know the replacement of "FromDynamicEntity" keyword for crm 2011 plugins.

    t1= New t2(GetCrmTypeCodes(), preImage)
    t1.FromDynamicEntity(GetCrmTypeCodes(), targetImage)

    where t1,t2 are entity object

    Thank You in anticipation

    Pinku Kumar

     


    Friday, July 3, 2015 9:15 AM

All replies

  • FromDynamicEntity is not a standard CRM 4.0 SDK method, looks like it belongs to this tool: https://crmquery.codeplex.com/

    Better you post your code and explain what this plugin is doing


    My blog: www.crmanswers.net - CRM Theme Generator

    Friday, July 3, 2015 10:44 AM
  • Thank you Guido.

    Do you know any such tool for CRM 2011/2013/2015.

    Regards,

    Pinku Kumar

    Friday, July 3, 2015 11:30 AM
  • Hi,

    Looks like you have pointed us to the right tool that generates code leveraging LINQ to SQL and the MS-CRM 4.0 API to give a MS-CRM CRUD data access solution. We also have such files in our 4.0 Solution as follows.
    1.CrmEntities.Crm.part.cs(entities and attributes),
    2.CrmEntities.L2SQL.part.cs(generated by SQLmetal.exe for linq),
    3.CrmEntities.List.cs(consist constants)

    Since now we are upgrading the code to 2013, we need to generate the same files  leveraging LINQ to SQL and the MS-CRM  2013 API  to give a MS-CRM CRUD data access solution. Can you please point us to similar tool that can help us generate the code in similar manner.

    Thanks

    Pinku Kumar

    Friday, July 3, 2015 11:44 AM