BPM c# code form refresh that worked in E10 does not not work in Kinetic 2023.1.8

This code works in E10 but not Kinetic 2023.1.8.

         Erp.Contracts.QuoteSvcContract Quotesvc =
         Ice.Assemblies.ServiceRenderer.GetService<Erp.Contracts.QuoteSvcContract>(Db);
         QuoteTableset QuotePDS = new QuoteTableset();
         QuotePDS = Quotesvc.GetByID(QuoteDtl.QuoteNum);
         this.dsHolder.Attach(QuotePDS);

I get the errors:

CS0246 The type or namespace name ‘QuoteTableset’ could not be found (are you missing a using directive or an assembly reference?)

CS1061 ‘FakeDirective’ does not contain a definition for ‘dsHolder’ and no accessible extention method ‘dsHolder’ accepting a first argument of type ‘FakeDirective’ could be found (are you missing a using directive or an assembly reference?)

Please Help!!!
Thank you,
Richard

The first thing is just a missing reference or using statement.

The second thing, did you move this code from a post to a pre?

  1. Can someone tell me what the missing reference or using statement is please.
  2. No, it is in a post.

Thanks,
Richard

What BO is this and what are you trying to do?

This is the standard c# code to refresh the form after data is updated by using getbyid in a bpm. It works in E10 but not in Kinetic 2023.1.8.

After what action? What BO method are you attaching this to?

Sorry, my bad, I was trying to do this in a data directive which I guess that you can’t do. I converted it into a method directive and it works without error.

Thanks,
Richard