added MW function for getting field and block and adding field and block
Merge branch 'branch_save_fieldmap' of https://github.com/digitalabs/IBPMiddleware into branch_save_fieldmap