Create project form quotes using custom function

Create project form quotes using custom function

I am trying to create a new project from quotes using below code.

have already created a connection using zoho qauth. it was creating a project earlier without the quotes id and details.

However, I need to have the project created with details from the quote.

createMap = Map();
createMap.put("name",ProjName);
quotedetails = zoho.crm.getRecordById("Quotes",quoteId.toLong());
createMap.put("name",quotedetails.get("Subject"));
response = zoho.projects.createProject(PortalName,createMap,"projects_create");
info response;