Update Deal Name in Quotes Module

Update Deal Name in Quotes Module

I have a workflow that automatically creates a new Deal for a quote when there is no Deal linked to the quote.  I need to create a function as part of the same work flow that takes the Deal Name of the newly created Deal, and updates the Deal Name lookup field in the quote.  I've tried the below script, but it does not retrieve the Deal ID that was just created in the same workflow.  In testing the function by manually entering the deal ID and quote ID, it does update the Deal Name lookup field in quotes.  What adjustment needs to be made to grab the deal ID of the deal made in the same workflow?

mp = Map();
mp.put("Deal_Name",dealId);
update = zoho.crm.updateRecord("Quotes",quoteId.toLong(),mp);
info mp;
info update;