Link to home
Start Free TrialLog in
Avatar of csimmons1324
csimmons1324Flag for United States of America

asked on

Dynamics CRM 4 - Bulk Edit Price List on Accounts

I need to do a mass edit to change the price list on numerous accounts.  When I select multiple records and hit edit, the price list field is grayed out and cannot be changed.  I had to do this a few years back and I came accross a script that I was able to insert into CRM (it may have been an onload function) that allowed the field to be editable when selecting multiple records.  Of course, I forgot to bookmark the site I found it on.  If someone can help me out on how to make the field editable, I would appreciate it.
Avatar of Rikin Shah
Rikin Shah
Flag of India image

Hi,

This is because if we have enabled the OnChange event for the fields, those fields appear as disabled on the Bulk Edit form. As multiple records in CRM won’t be able to trigger the OnChange event and take the defined action in OnChange Jscript.

Go to design mode of Entity. Go to Properties of the attribute. Go to Scripts and uncheck the Enable script checkbox temporay. Publish it. Change the values using bulk edit and re-enable the script.
Avatar of csimmons1324

ASKER

Rikin,

I have gone into the Account entity.  I then selected Forms and Views and went into the main Form for the Account.  I selected the Price List field and clicked "Change Properties" and then went under the Events tab and clicked the edit button.  There is no script listed there and the Event is not enabled.
Hi,

I hope you're working on latest UR.

I'm not sure if there is any script/js function available. But follow these steps and you will be able to edit it in bulk.

Create an On Demand Workflow with the scope of User, Remove any triggering action like Start When: Record is Created, Updated...
Add steps to update entity record, Set properties add a Price List. Save it and Activate it.

Now, select multiple records you want to update with and run the workflow we created.
The only thing you will be doing is that you need to change the price list for some of the records in workflow.
ASKER CERTIFIED SOLUTION
Avatar of csimmons1324
csimmons1324
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The link shows a microsoft KB article on how to update the OnChange event for bulk edits.