AI OnAI Off
Hi Andvik,
Yeah I would presume too that as it is internal is is susceptible to frequent change.
An alternative for you to use is either a submission actor or a web hook.
Using these you would be able to tie into your existing solution.
Thanks
Paul
Can you show how you register your CustomDataSubmissionService in the Startup.cs? The order is important
Make sure you add this line Services.AddTransient<DataSubmissionService, CustomDataSubmissionService>(); after the Services.AddCms...
In our solution we have a class, CustomDataSubmissionService, that inherits EPiServer.Forms.Core.Internal.DataSubmissionService and overrides the methods BuildReturnResultForSubmitAction, BuildSubmissionResultData and PerformDataSubmit. After the upgrade of both CMS and forms, CustomDataSubmissionService is no longer called when a form is submitted. In Startup.cs we have Services.AddTransient<DataSubmissionService, CustomDataSubmissionService>();
What could we be doing wrong? I've found very little information about DataSubmissionService. Maybe it is because it is an internal class and not intended to be used? Could it even be so bad that it actually can't be used anymore? And if so, are there any good alternatives? We are using this functionality to relay submitted documents to other systems, creating cookies based on input, fighting spambots etc.