Script returns null at OUT but works


#1

 

 

 

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.


#2

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.


#3

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?


#4

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()”.


#5

It works fine, thank you