Project Creation Using Template ID and Field Name - Function

Project Creation Using Template ID and Field Name - Function

I wanted to share my successful function that associates a Project Template ID to the auto-create Project Function. I could not find it in my own search, but did realize what I was doing incorrectly so below is the correct function code in case anyone else needs it.
  1. createMap = Map();
  2. createMap.put("name",ProjName);
  3. createMap.put("Software Suite",software_suite);
  4. // Provide name of the project to be created
  5. if(software_suite == "VARIABLE1")
  6. {
  7. createMap.put("template_id",templateid);
  8. }
  9. else 
  10. {
  11. createMap.put("template_id",templateid);
  12. }
  13. response = zoho.projects.createProject(PortalName,createMap);
  14. info response;