... on filename changes, I run this bit of code to get the internal and current file name:
//
// get original document file (optional) - you need your own record ID here
v_ZC_DocumentRecordID = 1234567890123456789;
c_ExistingDocument ...
... to_mail_ids in the URL instead of the body parameters
******************************************************************************* */
v_BooksOrgID = "12345678901";
v_BooksInvoiceID = 0;
v_ZB_CustomerID ...
... image cache reference so it is exportable to PDF
c_Document = Document[ID == v_UploadFileID];
//
// publish key of "Documents" report
v_PublishKey = "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
v_DocFileName ...
... */
//
// Go create a folder in workdrive, take the last hash string after the word /folders/ in the URL:
v_TargetFolder = ifnull(p_WorkdriveFolder,"abcdefghijklmnopqrstuvwxyz12345678901");
v_ImageToDownload ...
... */
//
// our made up books org id but enter your own
v_BooksOrgID=12345678901;
//
// ---------------------------------
// ZohoBooks Taxes
m_Taxes = Map();
r_Taxes = invokeurl
[
url :"https://books.zoho.eu/api/v3/settings/taxes?organization_id=" ...
... + v_BillID + "/attachment?organization_id=123456789"
type: POST
files: m_Attachment
connection: "zbooks"
];
Open the file / Download via Browser
We're going to use an openUrl() function here ...
...
This is the code used in a workflow triggered within ZohoCRM when a Quote is created or modified:
//
// initialize
v_BooksOrgID = 123456789;
v_BooksCustomerID = 0;
m_CreateEstimate = Map();
l_CrmBillingAddress ...
... enter your own organization ID here for ZohoBooks and ZohoInventory
v_BooksOrgID = 12345678901;
//
// evaluate
v_currentDate = zoho.currentdate.toString("yyyy-MM-dd");
v_OrderDate = zoho.currentdate.toString("yyyy-MM-dd");
v_Page ...
... "id": "123456789000000123456789",
"type": "custom"
}
}
Tidied Up
Want that in a practical format for use in ZohoCreator? Preferably not in the Zoho order, but that of the normal wee ...
... specify your DHL API Key (no need for the secret or base64 encoding)
v_DHL_API_Key = "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ";
//
// build up header
m_Header = Map();
m_Header.put("DHL-API-Key",v_DHL_API_Key);
// ...
... contains a question mark, send it to OpenAI
if(v_Message.contains("?"))
{
v_Question = v_Message;
//
// Need to add your own OpenAI token here
v_Token = "sk-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
//
// ...
... into a PDF using a customer's template.
//
// initialize (this is code added to a button so should alert user if no email was specified)
v_OutputMessage = "";
v_TemplateID = "123456789012345678";
//
// ...
... yields
// https://i.ebayimg.com/00/s/SAMPLE/z/ELPMAS/$_57.JPG?set_id=1234567890,https://i.ebayimg.com/00/s/SAMPLE/z/ELPMAS/$_57.JPG?set_id=1234567891
Note that for the below code, only 1 image is accepted ...
... record that holds my API connection details
v_IntegrationRecordID = 123456789012345678;
r_CrmRecord = zoho.crm.getRecordById("Integrations",v_IntegrationRecordID);
v_TradingAPIVersion = r_CrmRecord.get("Compatibility_Version");
//
/ ...
... day meeting
m_ScheduleMeeting.put("All_day",false);
//
// meeting owner/host ID (can see any record related to this meeting)
m_ScheduleMeeting.put("Owner",123456789012345678);
//
// related to what ...
... it an API version (eg. "2022-01" - or whichever is the latest stable version)
Location ID if you know it, otherwise leave blank (eg. "123456789")
Location Code if you know it (eg. "GB")
Get access ...
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies. Read more about our Privacy Policy.