Retrieve first value from watchlist field in record

Rafaeloneil
Giga Contributor
Hello everyone, Can anyone guide me on how to get the first item from a Watch List field?
My code below shows an error in the Flow Designer when assigning the 1st item of the Array to the output variable

find_real_file.png
My Watch List Field contains the following value:
email1@job.com.br, email2@job.com.br, email3@job.com.br
1 ACCEPTED SOLUTION

Gaurav Kumar15
Giga Guru

Hi, 

Code looks good, try adding the info messages to see which line is causing problem. 
Or try removing underscore and test. 

Thanks,
Gaurav

View solution in original post

2 REPLIES 2

Gaurav Kumar15
Giga Guru

Hi, 

Code looks good, try adding the info messages to see which line is causing problem. 
Or try removing underscore and test. 

Thanks,
Gaurav

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Rafaeloneil,

Replace line no 6 outputs._result = firstname with outputs.result = firstname 

 

- Pradeep Sharma