Hello, I have created a method in c#, in which I take the ID value and do some things.
The fact is that if I put the method in onBeforePromote, it gets a null value, I have tried it in 3 possible ways. The strange thing is that if I put that method in another event, like , it takes the ID value correctly.
Innovator innovator = this.getInnovator(); var id=this.getID(); var OrdenID1 = this.getProperty("id"); var OrdenID2 = document.thisItem.getProperty("id"); //var OrdenID = this.getProperty("id"); //string StateOF = this.getProperty("state",""); //string EstadoOF = this.getProperty("estado_cv",""); return innovator.newError("AA " + id + "BB "+OrdenID1 + "CC "+ OrdenID2);