If i am running the Back ground script i can see the incident record why i can see this record only

kranthi2
Tera Expert

Hi,

If i am running the Back ground script i can see the incident record why i can see this record only.

any specific reason why i am able to see 

INC0010001

 Please find the attached SS for the same please help me out the clear explanation on the same.

1.png

1 ACCEPTED SOLUTION

Hi @kranthi2  , Sorry got you question wrong this is something reply  for the same 

As you have used If condition it will exit the loop with the First ever satisfactory condition, That means "INC0010001" is the first record in the loop which satisfies the query condition and terminates the loop.

 

Please find below image for the same:

 

EswarChappa_0-1692259894084.png

 

 

Thanks & Regards,

Eswar Chappa

Mark my answer correct and Helpful if this helps you 😀

View solution in original post

10 REPLIES 10

Mohith Devatte
Tera Sage
Tera Sage

Hello @kranthi2 ,

Please change your loop from IF to while which will pick up multiple records from the table 

 

Hope this helps

Mark my answer correct if this helps you 

Thanks

Hi,

I have changed the same what you said and it is working fine.

But my question something different please check the same which is mentioned in my earlier response.

 

Here my question is why it is not displaying INC0010012/INC0010021/INC0000015/---and so on why it is INC0010001 only.  

 

 

@kranthi2 can you please explain it once again ?

Sure.

Please find the attached SS for your reference.

1.png

If i execute the above script it is returning the  INC0010001 

 

here my question is why INC0010001 will return.

why not some other incidents like INC0010012/INC0010021/INC0000015/---and so on because in my instance i have almost 60 incidents are available.

 

4.png

Hi @kranthi2  , Sorry got you question wrong this is something reply  for the same 

As you have used If condition it will exit the loop with the First ever satisfactory condition, That means "INC0010001" is the first record in the loop which satisfies the query condition and terminates the loop.

 

Please find below image for the same:

 

EswarChappa_0-1692259894084.png

 

 

Thanks & Regards,

Eswar Chappa

Mark my answer correct and Helpful if this helps you 😀