Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Bulk Edit Contents of Grid

Posted on by 218

Hi Experts,

I have a custom subgrid on the opportunity form to add products. However, there are few products are retired and have been replaced by the new products. There are around 300 open opportunities which have old products on the product subgrid.

Now, I need to update the opportunities will old products. I am able to get the list of opportunities using advanced find but unfortunately I am not able to add product details in the list.

Is there any feasible way to bulk edit the opportunities instead of updating them manually? I would like to edit the following detail.

0574.Edit-Grid.PNG

Thanks in Advance.

*This post is locked for comments

  • Aparna1 Profile Picture
    Aparna1 218 on at
    RE: Bulk Edit Contents of Grid

    Hi Clofly,

    Thanks for the help. I also tried to create a view out of opportunity products and added related opportunity to the view. I was able to find the list.

    I will try to update the products using this approach.

  • cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Bulk Edit Contents of Grid

    Hi Aparna,

    Opportunity product sub grid in Opportunity is actually a view instead of a field belongs to Opportunity.

    You could instead let opportunity product as source entity and add its opportunity field (lookup field) as column.

    pastedimage1565230877355v1.png

    Then you shall see each opportunity product's related opportunity and then export.

    pastedimage1565230989813v2.png 

    In addition, I found I couldn't edit grid in web client after I enabled editable grid in controls tab,

    but when I entered UCI, grid cells are editable, and my browser is chrome. You could have try it.

    bbz.png

    Regards,

    Clofly

  • Aparna1 Profile Picture
    Aparna1 218 on at
    RE: Bulk Edit Contents of Grid

    Hi chikhaleankush,

    That sounds great. I am on CRM online version and I have never developed a console application. Could you please also help me to get the sample console applications similar to my requirement?

    Thanks

  • Aparna1 Profile Picture
    Aparna1 218 on at
    RE: Bulk Edit Contents of Grid

    Hi Clofly,

    Thanks for the help. Yes we now have a OOB way to achieve editable grid but in my system I believe it was created before this feature.

    I am on CRM online version.

    I am not able to export the products related to an opportunity in excel because when I am trying to add columns from (Opportunity products), I do not see this as an option.

    Opp-prod.PNG

    However, when I am trying to filter my opportunities according to the products, I am able to add "Description" as a filter criteria.

    2867.opp.PNG

    Thanks

  • chikhaleankush Profile Picture
    chikhaleankush 547 on at
    RE: Bulk Edit Contents of Grid

    As mentioned in one of the answer if you have editable grid then manually yes but it will be inefficient reason been you have to go to particular Opportunity entity and then edit it.

    If you want to use small code, I would suggest create a quick console application in c#.

    1. create console application using c#
    2. connect to CRM
    3. query the database i.e using query expression or fetchxml as you already have fetchxml
    4. this will give you all the 300 or so opportunity record which have old products.
    5. Now iterate each one of them just like for loop
    6. for each record you will have for ex 7 Product record
    7. you will have some criteria where in only 5 or 6 or complete 7 product needs to be updated.
    8. update them. and same goes for all other records.

  • cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Bulk Edit Contents of Grid

    Hi Partner,

    There is an OOB way to achieve editable grids.

    Could you share me your CRM version and why you can't bulk edit contents?

    In addition, now that your products have been associated with a specific opportunity, 

    you could export the view and bulk edit description column in excel, then import the edited excel data into CRM directly.

    To see all views of product entity, you could paste below link in your browser:

    https://org.crm.dynamics.com/main.aspx?etn=opportunityproduct&pagetype=entitylist

    Regards,

    Clofly

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans