locked
crm 2011 How to add images on the Post operation in plugin? RRS feed

  • Question

  • Hi,

    for retrieve custom field in plugin

    How to add images on the Post operation in plugin?


    Ashish

    Thursday, March 22, 2012 11:48 AM

Answers

  • Hi Ashish

    I will suggest to have a look at the post i gave above. You will get to know all key steps

    Here is how to register Image.

    1. Register a step

    2. On this step, register a new Image

    3. You need to give the name for the image, Alias Name and filtering attributes (by default all attributes)

    Your image name should be "OpportunityPostImage", if you are using the same code as suggested by Sylvain..

    Hope this helps

    Thursday, March 22, 2012 1:21 PM
  • Hi Ashish

    My Pleasure that it helped you.

    Can you please mark the reply with that link as answer also. Both the post together make sense if some one else is looking for help on similar problem

    Thanks

    Thursday, March 22, 2012 4:02 PM

All replies

  • Hi Ashish

    Here is a nice article on plugins:

    http://crmconsultancy.wordpress.com/2010/10/25/plugins-in-crm-2011/ 

    See if this helps you

    • Proposed as answer by CRMDevlpr Thursday, March 22, 2012 4:01 PM
    Thursday, March 22, 2012 12:29 PM
  • You just need to register the image through Plugin Registration Tool.

    In the code you access it like this:

                        if (context.PostEntityImages.Contains("OpportunityPostImage"))
                        {
                            entity = (Entity)context.PostEntityImages["OpportunityPostImage"];
                        }



    Sylvain Hamel

    Thursday, March 22, 2012 1:07 PM
  • Hi sylvain,

    thanks for this code 

    but before call this code i need to register new image like pre image or post image? if yes then how to?


    Ashish


    Thursday, March 22, 2012 1:15 PM
  • Hi Ashish

    I will suggest to have a look at the post i gave above. You will get to know all key steps

    Here is how to register Image.

    1. Register a step

    2. On this step, register a new Image

    3. You need to give the name for the image, Alias Name and filtering attributes (by default all attributes)

    Your image name should be "OpportunityPostImage", if you are using the same code as suggested by Sylvain..

    Hope this helps

    Thursday, March 22, 2012 1:21 PM
  • Thanks CRMDevlpr.... 

    Ashish

    Thursday, March 22, 2012 3:54 PM
  • Hi Ashish

    My Pleasure that it helped you.

    Can you please mark the reply with that link as answer also. Both the post together make sense if some one else is looking for help on similar problem

    Thanks

    Thursday, March 22, 2012 4:02 PM