Script returns null at OUT but works

 

 

 

This is my script, when i hit run it works and creates callOuts bus returns null at OUT. I cant fix this because i don’t know where is the bug.

thanks for help.

Hello Luis,

This is expected. That particular API call is a void method. That means that it’s not supposed to return anything in the first place.

Thank you Dimitar i’ll remember it for future questions.

How can i get the callOuts that i’m making this way, without filtering all views from the begining? may I get the ids directly here?

After closing the transaction, you can loop through the views once more, get the callout id with "View.GetReferenceCallouts " and then convert the id to an element with “doc.GetElement()”.

It works fine, thank you