Oct 26, 2023 02:46 AM - edited Oct 26, 2023 02:52 AM
Hello,
I wrote this code and it works perfectly as I want in Script extension but in Automation it is a mess.
The first part of the code works fine in automation but not the second part, so only the second part needs to be adjusted. Here is the whole code :
but I get this when I run it in automation:
I noticed that the extension and automation doesnt run the same way but i don't know what to change to make it work like in the extension.
Thank you 🙂
Oct 26, 2023 06:06 AM
I don’t see anything in your code to explain the different results. But your code is a little hard to read, so I cannot say for sure. For example, you declare the variable transpoUpdates, but I cannot see where you use it. You also have an async call insides a loop, which sometimes causes problems, but doesn’t seem to be the issue here. Could you have different sorting or filtering going on in your views to account for the differences)
Oct 26, 2023 06:23 AM
Hi, yes true you are right I dont need this variable, I removed it but it changes nothing to the result
Oct 26, 2023 06:40 AM
I didn't expect removing the variable to help. I was just pointing it out as an example of why the code is hard to read. There are other reasons why I found the code hard to read, but that are more complex to explain.
Have you looked into the view filters?
Oct 26, 2023 07:01 AM
I have done with and without filters, and it changed nothing, I cannot understand why it puts the result so randomly in the table