Process driven module menu link 2

I added a process driven module menu link and this is its backend code i want the normal create lead but to make opportunity type equal rfp but this code isn’t achieving this it saves record even without save and when i removed $newLead->save(); opportunity type wasn’t updated

 public function run(Process $process)
    {
        global $current_user;
        $this->init();

        $options = $process->getOptions();

        /** @var \aCase $newCase */
        $newLead = \BeanFactory::newBean('Leads');
        $newLead->tendertype_c = 'RFP';
        //$newLead->last_name = 'RFI';
        $newLead->assigned_user_id=$current_user->id;
        $newLead->save();

        //called module
        $module = 'leads';
        $action = 'edit';
        $recordId = $newLead->id;

        $responseData = [
            'handler' => 'redirect',
            'params' => [
                'route' => $module . '/'. $action. '/' . $recordId,
                'queryParams' => []
            ]
        ];

        $process->setStatus('success');
        $process->setMessages([]);
        $process->setData($responseData);

        $this->close();
    }
}

i am using suitecrm 8.6

When you call save you should probably check the return to see if it’s giving an error.

I would recommend making sure you are filling all required fields for the new Lead.