locked
Plug Ins and C# code RRS feed

  • Question

  • Hi guys,

    Im starting on the rocky road to learn how to implement plug ins into CRM 4.0

    I have installed the SDK and understand the basic concepts of creating a VS solution and adding in the web references and then registering the plug in.

    My issue is I havent done any C# code before and cant seem to get my head around the code I would need for example to update an opportunity value of a field changes.

    I dont particularly want the C# code off anybody, just some advice on the best way to try and learn C# and the commands I would use in CRM Plug in development.

    If any one can suggest any books/websites that would also help.

    Thanks in advance

    Bharat

    Tuesday, July 12, 2011 10:01 AM

Answers

All replies

  • Hi Bharat,

    In SDK itself you will get sample code both for VB and C#, so learning from SDK will be help full here, if you have specific question/issue or facing any issue in your code you can post question here (posting question in CRM Development forum related to development will be helpful).

    you can check Programming Microsoft Dynamics® CRM 4.0


    Mahain : My Dynamics CRM Blog

    Tuesday, July 12, 2011 10:07 AM
    Moderator
  • Cheers Mahendra,

    Am I looking in the right place, the only sample I can find is the account create example and that doesnt really go into the detail Id like....

    Do you know if the link to the book you have provided goes into further detail on the C# side?

    A specific issue I can see me facing in the future is on the opportunity screen, we have a revenue and cost field, I would like to have a margin field which calculates the revenue - cost.

    Bharat

    Tuesday, July 12, 2011 10:22 AM
  • you can use js to do this calculation, yes this book have good sample code
    Mahain : My Dynamics CRM Blog
    Tuesday, July 12, 2011 2:53 PM
    Moderator
  • you can use js to do this calculation, yes this book have good sample code
    Mahain : My Dynamics CRM Blog


    Hi Mahendra,

    I can do it in js, just used that as an example of something I might want to do...a more involved example would be we have an entity called opportunity revenue which user put revenue entries in, this would then need to be added up and put in the revenue field in the opportunity...

    I have just ordered the book, so will give it a go from there....

    Thanks for the help

    Tuesday, July 12, 2011 2:59 PM