SparkleXrm
SparkleXrm copied to clipboard
DeleteAsyncOperaton Attribute generates error
I'm seeing this when I attempt to use the DeleteAsyncOperation attribute:
Error CS0655 'DeleteAsyncOperaton' is not a valid named attribute argument because it is not a valid attribute parameter type
Could you post the code that you are using please?
Hi, I seem to be encountering a similar issue.
If I have the following embedded plugin registration information there is no problem:
[CrmPluginRegistration(MessageNameEnum.Update, "sam7_approval", StageEnum.PostOperation, ExecutionModeEnum.Asynchronous, "sam7_mobile_approvalstatus", "ApprovalUpdatePostAsync", 1, IsolationModeEnum.None, Description = "Post-Async-Operation of Approval Update", Image1Name = "PreImage", Image1Type = ImageTypeEnum.PreImage)]
But as soon as I add the DeleteAsyncOperation attribute, I get the above CS0655 error:
[CrmPluginRegistration(MessageNameEnum.Update, "sam7_approval", StageEnum.PostOperation, ExecutionModeEnum.Asynchronous, "sam7_mobile_approvalstatus", "ApprovalUpdatePostAsync", 1, IsolationModeEnum.None, Description = "Post-Async-Operation of Approval Update", Image1Name = "PreImage", Image1Type = ImageTypeEnum.PreImage, DeleteAsyncOperaton = true)]
The various searches I've performed so far indicate that DeleteAsyncOperation being a nullable boolean isn't supported as a custom attribute data type, just wondered what I may be doing wrong or if there's a real issue that not many have encountered as async plugins (or the automatic tidy-up of their system jobs) isn't performed that frequently.
Can you help please? Many thanks.
Hi @scottdurow - I can imagine you're inundated with requests, but just wondered if you could find a moment to take a look at my comment above please? Many thanks in advance, very much appreciated.
Not sure if you are aware, but there is also a typo in the Name:
DeleteAsyncOperaton // Missing the i
DeleteAsyncOperation // Correct
Just updated to the latest version of spkl but the issue still seems to be there?
As a quite new feature: Has someone made this work already?
Sadly this attempt did not yield any change in the step after running the Task with the new version (1.0.440) of spkl
[CrmPluginRegistration(MessageNameEnum.Create, Account.EntityLogicalName, StageEnum.PostOperation, ExecutionModeEnum.Asynchronous, "", "Anonymized", 1, IsolationModeEnum.Sandbox, DeleteAsyncOperation = true)]
