I want to share a very strange case. I have a agent for move emails from the inbox, the code works correctly with Notes 7.1, however, does not work well in computers with 8.5. I have no any error message in 8.5.
The code is:
FIELD tipo:=“Demanda del Cliente”;
FIELD estado:=estado;
FIELD npedido:=npedido;
FIELD tpro:=tpro;
FIELD server := @Name( [CN] ; @Subset( @DbName ; 1 ) ) ; “El servidor Actual”;
FIELD database := @Subset( @DbName ; -1 ) ; “Esta base de datos” ;
FIELD FORM:=“Memo”;
@SetField(“tpro”;“”);
x:=@PickList( [Custom] ; server : database ; “OnlyPedidos” ; “*** SELECCION DE PEDIDOS ***” ; “Seleccione uno Pedido” ; 2);
@Prompt([Ok]; “x”;x);
@SetField(“estado”;“Pedido”);
@SetField(“npedido”;x);
@All;
@Prompt([Ok]; “estado”;estado);
@Prompt([Ok]; “npedido”;npedido);
@All
The code did not have the @Prompt, I added in order to debug the routine. The values are displayed right in 7.1 & 8.5, but when I check the document properties the fields “estado” and “npedido” for the @SetField don´t not exists in the document, but again, in computers with 7.1 works well.
The fields “estado” and “npedido” does not exists previously to run the agent. This code must create it.