Depreciated mergeAndStore Function Help!
Hello,
I have a function designed to create a PDF containing information from the fields in a Deals record. There is a Writer Mail Merge template in WorkDrive that is populated via Deluge code, and a copy of the resulting PDF is then attached to the record.
The function currently works fine except that the *merge and store* function is now flagged as *depreciated* and I am unable to copy any of the depreciated functions to my Sandbox environment for development work.
I had a long and fruitless online chat with Zoho about a month ago, followed by many emails saying they are still working on it, so I thought I'd ask the hive mind instead!
This is the relevant code:
- resp = zoho.writer.mergeAndStore(quoteTemplate,dataMap,outputMap,"writer-connection");
- docID = ifnull(resp.get("document_id"),"None");
- if(docID != "None")
- {
- // attach document to order record
- map1 = Map();
- map1.put("Accept","application/vnd.api+json");
- resp = invokeurl
- [
- url :"https://workdrive.zoho.eu/api/v1/download/" + docID
- type :GET
- headers:map1
- connection:"workdriveall"
- ];
- resp2 = zoho.crm.attachFile("Deals",dealId,resp);
When I try to save the function I get this error:
- Failed to update function Not able to find 'mergeAndStore' function (Line : 232)
Am I missing something, is there anything else I should be updating?