Discussion Forums

Changing a Field on Multiple Records

 
Lyncean
40 posts

We’ve decided to add a new drop down field “Industry” field for companies.

How can I update multiple companies at the same time?

e.g. select all my banking companies and then change the Industry field to “Banking”

Avatar
Administrator
4122 posts

There’s currently no facility to mass update a field across multiple items.  There is a work-around for contacts.  For companies we’d need to dip into the API and run a quick batch file from the command line etc.

Lyncean
40 posts

OK, thanks.  I’d prefer a field (better for exporting) but I guess I might use Tags for now.

Lyncean
40 posts
craig4wd - May 18, 2010 09:06pm

OK, thanks.  I’d prefer a field (better for exporting) but I guess I might use Tags for now.

Is there a way to search for all companies that have no Tags?

Avatar
Administrator
4122 posts

You can only search by having a tag, you cannot currently search by not having a tag.

Avatar
Administrator
4122 posts

Just for background, the method to update company fields using the command line would be something like this:

1) Filter the companies by Tag = “Banking”, Data > Export this list (Excel), the first column in the spreadsheet are the IDs for the companies you want to update.

2) You need the command line utility cURL installed, if you have a Mac it’s already there

3) Create and run a batch file with this line repeated for each ID

curl -'{userEmail}:{userApiToken}' -X PUT -'Content-Type: application/xml' -'<request><custom1473640>Your Data</custom1473640></request>' https://secure.solve360.com/contacts/811805 

- where custom1473640 is the field name (Workspace > My Account > API Reference > Company > Fields)
- where the last number is the company ID

Lyncean
40 posts

Thanks, that’s quite helpful.

Avatar
Lyncean
167 posts

Comment deleted - superceded