SparkleXrm icon indicating copy to clipboard operation
SparkleXrm copied to clipboard

DeleteAsyncOperaton Attribute generates error

Open Sano opened this issue 6 years ago • 5 comments
trafficstars

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

Explanation

Sano avatar Dec 14 '18 17:12 Sano

Could you post the code that you are using please?

scottdurow avatar Dec 20 '18 12:12 scottdurow

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.

andy-sam7 avatar Aug 20 '19 16:08 andy-sam7

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.

andy-sam7 avatar Oct 30 '19 10:10 andy-sam7

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?

zaha avatar Jul 09 '20 14:07 zaha

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)] image

Kunter-Bunt avatar Feb 01 '21 10:02 Kunter-Bunt