Right now we have ordinary way to do the loop in automation command except use a hack/workaround that I suggested on forum a while ago (call Sukasem’s Loop by @pauln). It is basically dynamic automation command name trick.
It would be nice if we have this build-in action like another validation for when should loop stop. So, we can do crazier things
Here one way to do it (another way call script in Command Name):
For example to loop 1 to 20,
Automation Command Name: Loop Automation
Update Program Setting Action: Name=curLoop, Value=1, Update Type=Increase
I don’t think I’m fully getting it probably because I didn’t used this loop on somewhere else however even I constantly optimize it to make work faster every stuff we add to automation makes it a tiny bit slower. As we already have JScript access and we can also trigger automation commands from JScript wouldn’t it be a better idea to use JScript for clause to create that kind of loops? I’m sure it will work really faster than updating settings / resolving printing tags, etc.
Besides that I might be missing something amazing because I’m not aware of the benefit it creates. If it is the case please let me know so I can study your case in more detail.
Ummin my case @emre I needed to create Account Transaction Documents to which there is no API? Therefore to LOOP in and Out of an ACM and read a file Line x Line was the only answer.
(Hint: TransactionLineCount = pointer of where to read the next text line from file)
So we can only pass 1 value which equates [:CommandValue] ? Ok so I would still use Data.Set/Get for multiple values correct?
PS: @emre I truly love the ability to create parameters such as the “Deliverer Tutorial” i.e. AccountDocumentToUse="Some Name" and then reference it in ACM as [:AccountDocumentToUse] - that is fantastic (more please when creating new stuff…).
Wouldn’t it be better to try it first and request a feature if it does not exists?
Well it is 5:40 AM here. Maybe you didn’t requested something lol… I’m going to sleep but I have this in my copy paste cache so I’m posting it here not to loose it. I hope I’ll remember what to do with that.
Was that directed at me? Sorry I do not know what you are referring to as “it” - If it was multiple parameters such in Search Entity Screen I am doing that?
Ah “sleep” it is overrated! (That’s what I tell my wife…)
Hmm… a lot of things still need to execute via Automation Command Rule. I was hoping we just have one Execute script command in the rule and run everything in script, I guess not. Have to think about it more.
Wouldn’t it be cleaner if we have this Loop Automation then? Using dynamic ACM name, it is not problem for veteran here. I thought it would be easier average users to accomplish the task easier with this action. I think using script still need more expertise especially, passing data between automation and script.
I am thinking like average users point of view when they want to execute something they create rule and then add actions step by step then wait how can I loop this/how can I stop this. If there is this Loop action they don’t even have to touch script.
Well I was trying so hard to stay at this level but was drawn into the “Dark Side” by the force (picture @Jesse as Darth Vader…)
I just had another look at my Script and creating Multiple parameters using Data.Set() will do the trick so I could bypass your loop and stay in the script calling the ACM. For now no need to change a pretty good thing as it works.
Lodge an issue, I think you can split your post off from the error message. I am very keen to see the answer as well.
I would maybe change your Rule Name first just in case it is a reserved word…