Issue while updating sponsorship "Amount"
Hi There,
We are trying to update sponsorship 'Amount' field from API using below code.
RecurringGiftEditForm2Data rgEdit = new RecurringGiftEditForm2Data();
RecurringGiftEditForm2Data.SPLITS_DATAITEM[] array = new RecurringGiftEditForm2Data.SPLITS_DATAITEM[1];
array[0] = new RecurringGiftEditForm2Data.SPLITS_DATAITEM();
array[0].DESIGNATIONID = new Guid("01500820-c7ac-4e9e-8706-dcd387d25f9f");
array[0].AMOUNT = new decimal(30 + 0.0);
rgEdit.SPLITS = array;
rgEdit.AMOUNT = new decimal(30 + 0.0);
We are getting following error 'You cannot delete a designation split that is referenced by a sponsorship.' while updating sponsorship amount.
Can anyone help us to update sponsorship 'Amount' field.
Comments
-
You need to load the data first, then update it. You would want to start by loading the data with
var svc = new AppFxWebService(RequestContext);
var loadReply = svc.DataFormLoad(new DataFormLoadRequest
{
FormID = new Guid("306117b1-990b-49a9-a836-9671acfd0ffe"),
RecordID = recurringGiftID.ToString(),
ExcludeValueTranslations = false
});
RecurringGiftEditForm2Data rgEdit = new RecurringGiftEditForm2Data();
rgEdit .SetRequestContext(RequestContext);
rgEdit .LoadFromDataFormItem(loadReply.DataFormItem);
Once that data is loaded you can change the amount field and loop through the split fields and change the amounts. I believe the issue is from 2 issues, not loading the data first, so when you save it is overwriting the data, deleting the designation split that is referenced by a sponsorship. Then the second issue is if you did load the data you would be overwriting the data again.
So make the change to load the data, then edit the array in the rgEdit object instead of creating a new array.
Hi There,
We are trying to update sponsorship 'Amount' field from API using below code.
RecurringGiftEditForm2Data rgEdit = new RecurringGiftEditForm2Data();
RecurringGiftEditForm2Data.SPLITS_DATAITEM[] array = new RecurringGiftEditForm2Data.SPLITS_DATAITEM[1];
array[0] = new RecurringGiftEditForm2Data.SPLITS_DATAITEM();
array[0].DESIGNATIONID = new Guid("01500820-c7ac-4e9e-8706-dcd387d25f9f");
array[0].AMOUNT = new decimal(30 + 0.0);
rgEdit.SPLITS = array;
rgEdit.AMOUNT = new decimal(30 + 0.0);We are getting following error 'You cannot delete a designation split that is referenced by a sponsorship.' while updating sponsorship amount.
Can anyone help us to update sponsorship 'Amount' field.
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 209 bbcon®
- 1.4K Blackbaud Altru®
- 394 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 359 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 646 Blackbaud Grantmaking™
- 563 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 934 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.4K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 243 ResearchPoint™
- 118 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 238 The Tap (Just for Fun)
- 33 Blackbaud Community Challenges
- 28 PowerUp Challenges
- 3 (Open) 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
- 779 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)
