Different print output depending on a variable Seguir

1
Avatar
Raul Jimenez

Hello there,

I receive a JSON with the variable %printId%. This variable discriminates against me the printing by different printers that have the same name as% printId%.

for example:

%printId% = PRINTER01 - printer number 1
%printId% = PRINTER02 - printer number 2

I need that, if the name of %printId% is not like the name of the printer, it prints by a different one.

for example:

%printId% = PRINTER03 - This printer does not exist, print by PRINTER01

Thanks!

7 comentarios

1
Avatar
Pete Thane
Acciones de comentarios Permalink

You can configure failover and redirection settings for printers in Admin Console but I believe that only works if the printer already exists and not if it does not

-1
Avatar
Raul Jimenez
Acciones de comentarios Permalink

not valid for my case, printers always exist and i need to discriminate it by variable within integration

0
Avatar
Pete Thane
Acciones de comentarios Permalink

Confused, you said it doesn't exist initially

1
Avatar
Raul Jimenez
Acciones de comentarios Permalink

Hello there,

I have not indicated that the printer does not exist. what I need is that if it is not in a list of users (in my case variables), it leaves for another printer

-1
Avatar
Pete Thane
Acciones de comentarios Permalink

Hi Raul,

In yous first message you said 

"%printId% = PRINTER03 - This printer does not exist, print by PRINTER01"

but later said

"for my case, printers always exist"

hence the confusion. 

As mentioned above if the printer DOES exist then you could configure the failover and redirection settings but if it DOES NOT then that is not possible in which case you would need to make sure that the JSON parameter is correct by configuring your software that create the JSON commands to always reference a valid printer.

 

0
Avatar
Laura Vela
Moderador
Acciones de comentarios Permalink

Hello Raul,

Thank you for your comment.

I am not certain I completely understood the solution you want to build but, in case this might help, besides using the printer redirection in Administration Console (which could be a really straight forward way of redirecting the print jobs to another printer), within the Integration you have option to execute an action conditionally (so based on an expression).

Taking this into account, before your Print Action you could set up another action (for example a Powershell script) that could be executed conditionally (or that could be executed always but it would be in charge of doing the printer checks required)

 

Let me know if this helps.

0
Avatar
Raul Jimenez
Acciones de comentarios Permalink

Hi Laura,

the solution may be good, I perform four configurations and checks and I send you feedback

Thank you

 

Iniciar sesión para dejar un comentario.