Integrations
Configure Task Output
Review, Discover, and Add Output Parameters
6 min
if your task relies on a plugin or asset, you can review the parameters, names, and descriptions that go along with that plugin or asset on the output parameters tab discover and add parameters for scripted tasks the output parameters tab is also where you review and add parameters for scripted tasks your script must define outputs in order for them to be discovered to discover and add parameters for scripted tasks create or open a task that is dependent upon a script, then navigate to the output parameters tab on the output parameters tab, click discover parameters next, you will run the task and discover its parameters click and hold the run task for parameter discovery button the task runs, which allows swimlane to discover and index the available parameters for the task important! the task actually executes, so make sure you're running the task in a safe environment! you now have a list of defined parameters review the list and add new parameters as needed you can select multiple leaves of the tree and click add parameters, which will generate jsonata for each one next, you'll map the output parameters for the task click the outputs tab the parameters you've just discovered and added are now available to be created and mapped to in your task you can edit the json after mapping them, but only the parameter can be changed at this point you can also manually enter the json when adding output mapping note the parameters are automatically assigned as specific field types in your application when you access the app field/field type drop down menu, you will only see the field types available for that parameter this ensures that your mapping doesn't fail due to mapping to the wrong field types in the integration map actions swimlane helps you map your parameters some parameters such as output parameters and run status parameters are available for automapping however, standard output, input parameter, and system output parameters are never part of automapping and will need to be mapped manually when you review parameters, those that are not available to be automapped are noted with an info button that, when you hover over it, point out the parameter's type and specify that it is not available for automapping when you are viewing the parameters in your task, or if you're viewing unmapped parameters, you have access to the mapping actions menu click this menu to instantly remove all existing mappings, to map unmapped parameters to available existing fields, or to map unmapped parameters to new fields the parameters all have relative data types that are associated with specific field types when mapping parameters, the relevant, associated field types are all that are listed for you to choose from for more detail on output mapping and field types, see mapping types docid\ emdviepp0zbqcc6xman 8 find tasks that output to a specific field when troubleshooting an error, it may be helpful to find a list of all tasks that output to a specific field you’ll need an application in swimlane with a field the name of the field in swimlane google chrome access to mongodb https //support swimlane com/support/solutions/articles/8000088613 installing robo 3t and running a query for mongodb (or this link for how to access mongo via cli https //support swimlane com/support/solutions/articles/8000068326 mongodb accessing the mongo shell and other cli tools with ssl or tls ) to find tasks with a specific output field load the application builder page open chrome developer tools https //developers google com/web/tools/chrome devtools select network and find the application id from the url of the current page select response , copy the text, and paste it into a json document viewer search the document viewer for the field name copy the id field connect to mongodb paste the field id into the following query and run it db getcollection('tasks') find({'outputs mappings value' 'xxxxxx'}) pretty() code similar to the following image will be returned in the json document viewer the important fields to look at are the id and name fields use these fields to track down the tasks in swimlane