So I will probably need to split it up again and have the automation triggered on created.
Even more I vote for automations to be called by different triggers in parallel updated/created⦠etc.
Brilliant! Of course thereās no API to ātriggerā anything in Tapeās automation workflow on an item, but itās a brilliant idea to use the SDK to create the item, get the created item ID (which the base UI doesnāt give you, Iāve learned) and then run an update on that item to update a category field or some other field that would trigger that particular workflow for you.
- I would normally do this in one script block but to keep it as low code as possible, you can call a workflow on the newly created record with a single line of code:
Its always impressive, how you and others find workarounds with custom code
Thanks a lot - it will help me now to finish it.
On the other side, its supposed to be a LowCode platform. People, who want to build a LowCode App should have a way to call an automation of a just created record, right?
Wow, I didnāt know that you can call automations in script like:
tape.Workflow.triggerWorkflow(309442,{trigger_on_record_id:created_shortcuts_test_ID});
It took me a minute to realise how powerful that is.
How did you find this one out?
I couldnāt agree more on the created record I am not 100% but I think the created record_id being available at all is a relatively new thing.
I was trying to build something today in a ālow codeā way in the end I gave up and just wrote it all in one script block. I was creating records within conditionals and then wanting to interact with the new records and it was āannoyingā.
All that been said the ability to do so much in a script block is one of the things I love about Tape and thinking back it was probably the difficulty in interacting with newly created records that got me looking more into what you can do with the script block
Type in tape . Then start typing what aspect of Tape you might want to interact with for example: record if it is available it will auto complete then type another . And start typing what you might want to do create and if itās available it will again auto complete then type a bracket pair ( (it will autocomplete the closing one) mouse over the last word in your dot sequence and it will generally tell you what you need to put in the brackets. I say generally as ironically the trigger workflow one doesnāt really give you much.
So basically trial and error
Also once you are in the { } pair you should be able to type ctrl+Space and it should give you some options as what keys should be there (I do find this a little hit or miss on my machine)