Knowledge Base
Got issues? Don't worry, here are all the solutions.

Automatically re-execute all sets of link & load after saving the record

If you would like to re-execute all sets of link & load of the record right after saving it automatically, please follow this guide to add your script:

Step 1: Open the Ragic workflow editor.

Click on the arrow icon of the sheet from the tab and select Javascript Workflow, which will take you to the Workflow Module.

Step 2: Switch edit page to "Post-workflow".

Step 3: Paste, edit the following code and save.

var nodeId = param.getNewNodeId(Key Field);

var path = '/tab_path/sheet_path'; 

var query = db.getAPIQuery(path);

var entry = query.getAPIEntry(nodeId);

entry.loadAllLinkAndLoad(true);

entry.setCreateHistory(true);

entry.save();

Please replace the Key Field with the Key field id of your sheet, which you can find it in the workflow editor or you can look up in your data dictionary.

In this example, the line should be replaced to:

var nodeId = param.getNewNodeId(1001404);

And replace '/tab_path/sheet_path' with your own tab and sheet path.

Example If your sheet url is 'www.ragic.com/sample/sales/3', this line would be written as following:

var path = '/sales/3'; 

Top of Page
Learn more about Ragic:
Why we created Ragic
Webinars
User Guide
Ragic Pricing
Applications
Keep in touch:
Blog
Facebook
YouTube
Ragic, Inc.
1-888-666-8037
Terms
Privacy
info@ragic.com