web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Bulk Update - change Multiple Records and trigger Update Plugin

(0) ShareShare
ReportReport
Posted on by

Hello Everyone,

Let's have a scenario  -I select multiple records in a view, click edit and change a A field in Order (Entity) by the bulk edit tool. This A field needs to change two fields : Item X(calculated field) and Item Y (Text type). Item X is successfully changed for all selected records at time but for Item Y is not changed because it needs to calculate from other fields info like ( Item Y = A field * total ; Total = Item 1+ item 2 + item 3 in Order entity.)

As of now , for Each record , I'm able to write a plugin(Update) to do calculations based on change of A field.

How to do for Multiple selected records using same plugin?

I'm getting error when I'm selecting multiple records in Bulk edit tool?

An error has occurred. The selected action was not completed for one or more records.

On selection of single record --> no error and full selected record is open in new tab!

We use CRM 2016 OnPremise.

Can anyone help me in solving this problem ? I prefer to solve this problem by plugin but open to check the solution using Workflow also?

Thank you,

Deepthi

*This post is locked for comments

I have the same question (0)
  • ashlega Profile Picture
    34,477 on at

    Hi Deepthi,

     there is no reason why the plugin would not be working just because of the bulk edit. Does the error happen every time you use bulk edit? Can you bulk edit two records? If not, can you update both of those two individually without getting an error from the plugin?

  • Inogic Profile Picture
    764 on at

    Try the below link,

    https://rajeevpentyala.com/tag/selection-action-was-not-complete-for-one-or-more-records/

     

    Hope this will help.

     

    Thanks!

  • Daniel at VNS Profile Picture
    on at

    the cause/solution might lie in the fact that bulk edit never allows any client-side operations (JS, business rules?) to execute, which may be a pre-requisite to complete calculated fields.  so if we can find a way around the need for client-side calculations, maybe that's the solution.  

    So perhaps if, on bulk-edit only, you replicate the client-side calculations as part of the plug-in?

  • Community Member Profile Picture
    on at

    Hi! 

    Can you please provide message of this error?

    I think you can take all the code in your plugin in try/catch and create note for the current entity with your error in catch. After that select entities which were not updated and take a look for the error and try to resolve it.

    Hope this helps

     

    Vlad

    http://dynamicalabs.com/

    Disclaimer: Any post on this page provided "as is" without warranty of any kind and is for educational and information purposes only. We disclaim any liability arising from any reliance placed on any post

  • Durgaprasad Profile Picture
    80 on at

    Hi,

    I'm having the similar issue. My plugin is not calculated the correct result. 

    Are you able to resolve the issue. Please help the solution.

  • Suggested answer
    Jaya Krishna Profile Picture
    65 on at

    There are two approaches you can try

    1. Use On - Demand Workflow which will trigger on click of bulk edit .. Write Custom Workflow logic in new step and achieve your functionlity

    2. Second Approach - Open Records page of specified entity - Click on Export to Excel - Open Excel Online option --> Write Rules to Perform required operations in Excel Online and then click on Save Changes to Dynamics button which will be helpful for you in manual editing

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans