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
- New Grantmaking TEST Community
- New Altru Test Community
- New bbcon Community - TEST
- 11 Blackbaud Agents for Good™
- New Raiser's Edge NXT Community
- 7 Blackbaud Community Help
- 218 bbcon®
- 1.4K Blackbaud Altru®
- 409 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.2K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 16 donorCentrics®
- 361 Blackbaud eTapestry®
- 2.7K Blackbaud Financial Edge NXT®
- 679 Blackbaud Grantmaking™
- 596 Blackbaud Education Management Solutions for Higher Education
- 3.3K Blackbaud Education Management Solutions for K-12 Schools
- 951 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 85 JustGiving® from Blackbaud®
- 6.9K Blackbaud Raiser's Edge NXT®
- 3.9K SKY Developer
- 255 ResearchPoint™
- 122 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 246 Member Lounge (Just for Fun)
- 40 Blackbaud Community Challenges
- 37 PowerUp Challenges
- 3 (Closed) PowerUp Challenge: Grid View Batch
- 3 (Closed) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) 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
- 820 Community News
- 3.1K Jobs Board
- 57 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
