We are a group of users of Blackbaud products and are not affiliated with Blackbaud. We'd love to have you join our community to help and be helped in getting the most from your Blackbaud software.
Register now to join us to get independant advice on your system, connect with 3rd party consultants to help you maximize your database and have a real alternative to the official Blackbaud website.
Stuck trying to create a spouse individual relationship
Hi everyone,
I'm creating an easy data-entry form for our volunteers, and I'm stuck on what is probably a very easy problem to solve (just not for me!)
I'm trying to add a new Spouse individual as a relationship on an existing constituent, but when I create a new CIndividual using constituent.relations.individuals.add I keep getting an error which is missing field 'Relation ID'. I've realised that I must need to create an entry in the Records table to generate this missing ID, but when I create a CRecord it becomes a full constituent not just a relationship.
Is there an easy way to create a relationship that's not a constituent as well? I think I'm missing something pretty basic here.
Good that you solved the problem. However I would not recommend using the methods you have done.
The CIndividual object and constituent.relations collection was discontinued. That is why there is no intellisense when you use them. Instead you should use the CIndividual2 object (and corresponding collections). This is a top level object that should be created as such. I am sure that your method works but it is uncertain when Blackbaud will turn of that functionality (it was made obsolete many versions ago)