Python script: Update Mapping Task Inout Parameter Current Value

Python script: Update Mapping Task Inout Parameter Current Value

Posted by: Nitin Rajasekar

Python utility to update current value of the mapping task inout parameters. It is supported on Windows, Linux Operating systems.

Overview

The Python utility reads the mapping task related user input from csv file that contains the mapping task and inout parameter information in the following format

 mapping_task_name,parameter_name,current_value_update

e.g.
test_project/folder1/MappingTask5,param1,param_value1
test_project/folder1/MappingTask5,param2,param_value2
test_project/MappingTask4,param1,param_value1
test_project/MappingTask4,param2,param_value2

To update multiple inout parameters for the same mapping task, add separate rows for each parameter contiguously

The script uses the login information from login.json that is present in the same directory as the python script file
format of the login.json :

   {"v2_api_login_url": "https://dm-us.informaticacloud.com/ma/api/v2/user/login",
   "v3_api_login_url": "https://dm-us.informaticacloud.com/saas/public/core/v3/login",
   "username": "update_username",
   "password": "update_password"}


Python utility accepts 1 input parameter

Python update_mtask_inout_param.py <parameter 1>

Parameter 1: input CSV file (with path)


Example invocation:

python update_mtask_inout_param.py /home/input.csv

Resources

  • Python 3.x

Support

Nitin Rajasekar

Comments (0) Comment can only be posted by Signed/Logged in user