Create a new record in custom module vi custom button

Create a new record in custom module vi custom button

I have zoho books premium plan .
I have 2 custom modules in zoho books. 1. Goods Receipt 2. Delivery Order, I need to select multiple records from Goods Receipt and create a new Delivery order from these multiple records. (like multilple sales order into 1 invoice) . I created a custom button on Goods Receipts View . Tried some code but still not able to achieve. Same I did in zoho creator already. I am not able to even get record ids for multiple Goods Receipts. Tired code from chatgpt also.