Extending a collection object in the constituent update batch
I've been asked to add a do-not-email reason code to the constituent update batch. Email addresses in the batch are a collection field and, ideally, we'd like to have the new field appear in the collection and function just like the corresponding field in the address collection field. Is there anyway to extend a batch collection field?
Ray Porter
Comments
-
Hello Mr. Porter,
Unfortunately I don't believe there's a way to extend a collection. Even if you could, the biggest issue you'd run into is that when the batch executes it winds up calling a function to parse the collection information (which is nothing more than xml) out into SQL again (this function references specific columns in the collection). What that means is that even if you had it extended you wouldn't necessarily get the value parsed through the batch and processed, you'd have to create a new batch entirely due to that one function call.
Mind you I'm not at all an expert when it comes to CRM so someone else might know of a work around or way to do what you're looking for.
Best of luck0 -
Thanks. That’s largely the conclusion I’ve reached. There’s quite a bit of CLR code linked to this particular batch too and that presents the same problem you’re describing. I could add the do not reason code as an extended field in a batch extension but then linking the reason code to the correct email address would be a challenge. I don’t think you can create a UI model for a batch?
Ray Porter0 -
I've not played around with extending Batches yet so I can't really help in that department too much.
Sorry0 -
Blackbaud actually gives an example of how to extend a collection in their SDK documentation, under the header: Batch Extension Example: Extend a Collection
The way they go about the issue you are raising is by simply having you, the developer, re-create the collection you are extending. You must make sure that in any new Batch instance you create, you replace the OOB collection with your new extended one.
This is over all not a big deal. I have done it for multiple collections – existing and new -- in the Constituent Batch.
CUB is a bit of a different beast. I have managed to add a Do Not Email Reason Code to the system and link that up with CUB, but it requires a lot of replication of CUB's existing handling of the Email Addresses field, which at times can seem pretty convoluted – especially because CUB shares a lot of its code with the Enhanced Revenue Batch.
But it is definitely doable.
Cheers!
-Willem
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 210 bbcon®
- 1.4K Blackbaud Altru®
- 395 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 649 Blackbaud Grantmaking™
- 567 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 937 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.5K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 247 ResearchPoint™
- 119 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 239 The Tap (Just for Fun)
- 33 Blackbaud Community Challenges
- 31 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 784 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
