Skip to main content
Question

Accessing entity properties using javascript in a workflow.

  • May 9, 2023
  • 1 reply
  • 94 views

christopherlecky
Byte
Forum|alt.badge.img+17

I am trying to create a JSON payload to submit to qoperation the problem I seem to be running into is that I can’t access the properties of the cliententity object.

I tried to see what would happen if i did something like 

 

logger.info(servers[0].clientName)

and the output I get is null.

This is what the script looks like:

 

This is what the for loop looks like:

 

This is the output: 

 

Clearly I am doing something wrong.

I posted this in the private area in hope it would get more traction.

Thanks.

1 reply

Forum|alt.badge.img+4
  • Vaulter
  • May 18, 2023

Hi @christopherlecky , I am not able to see the images you attached, can you please attach once again?