Function Only Working Manually
Good evening everyone.
I have a function that creates a PDF from a Creator form. When I execute it manually it works perfectly. But when I execute it from within a On success workflow it is not working. I'll post my code below. Any ideas?
- //Function
- void UploadPDFtoDeals(bigint SodexoSqId, string fileName, bigint dealId)
- {
- exportPDF = invokeurl
- [
- url : toPdfLink
- type :GET
- response-format:FILE
- ];
- //info exportPDF;
- crmResponse = zoho.crm.attachFile("Deals",dealId,exportPDF);
- }
Here is the On Success Workflow snippet.
- // Attach PDF of Form
- if(dealResponse.get("Status") == "success")
- {
- recordDetailsDeal = dealResponse.get("Details");
- dealId = recordDetailsDeal.get("id").toLong();
- thisapp.UploadPDFtoDeals(input.ID,dealName + " - " + dealCounter,dealId);
- }