Unofficial Content
  • This documentation is valid for:

Edit your .cs file and add the following using statements:

using Artech.Genexus.Common.Objects.;
using Artech.Architecture.BL.Framework.Services;
using Artech.Architecture.UI.Framework.Services;

Then:

//Obtaining the target object, in this case a procedure
Procedure oProc = Procedure.Get(UIServices.KB.CurrentModel, "MyOriginalProc");

//Using the "Clone" method to copy all the information from the procedure
KBObject oProcClone = BLServices.KnowledgeManager.Clone(oProc);
oProcClone.Name = "ProcedureClone";
oProcClone.Save();

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant