Split at Delimiter

Posted by @nahumck, Last update over 1 year ago

Simple script to split a draft at a specified delimiter.


  • script

    // Split at specified delimiter
    var delim = "|";
    var text = draft.content;
    var chunks = text.split(delim);
    for (var chunk of chunks) {
    	var d = Draft.create();
    	d.content = chunk;


  • After Success Default
    Notification Info
    Log Level Error
Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.