Facing TypeError: Cannot read properties of undefined (reading 'toLowerCase')"

Hii Team , I am working on some integration and I have created a custom doctype for it to trigger some requests . But when I am trying to trigger the request I am getting this error . Please help me solve this issue ASAP.
Thanks !!