How can I show an Account's total lifetime purchase value?
Hello,
I know I am missing something. I want to visualize how much each account has paid us over the time they have been customers (lifetime value). This must have been done before but I can't find a community thread on it.
We do not bill with Zoho Finance/Books, we use Square. So I will have to import transactions or use a Flow to add each transaction as a paid invoice. I think I can do that, but how can I access that information in the Accounts Module?
I had planned to write a Flow to trigger a custom function any time a transaction is posted, using the customer ID number.
I put dummy invoices in Books to test, but I can't get the info to return from the custom function. I've scripted with deluge in Creator, but not using APIs, and I don't understand the API syntax. This what I have:
- float Return_Customer_Lifetime_Value(int Ident)
- {
- //Ident is the customer ID
- transactions = zoho.books.getRecords("customerpayment", <some OrgID number> , Ident, "zoho_books_connection");
- total = 0;
- for each rec in transactions
- {
- total = total + "amount"; //how do I refer to the amount properly using an API?
- }
- return total;
- }
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Sticky Posts
Extension pointers for integrating Zoho CRM with Zoho products #8: Upload and manage Zoho Workdrive folders and files from within Zoho CRM
Keeping records on your customers and business prospects is essential for tracking data, conducting follow-ups, and running a business smoothly. When you use two separate applications, and store relevant data in each, checking and tracking data becomes
Extension pointers: Handle cases with personalized solutions using custom actions
In our last post, we detailed the steps involved in creating a custom action and the workflow from the developer and end user's side. Now let's look at a working example of how we can create a custom action and implement it in a Zoho CRM account to make
Extension pointers - Simple yet significant pointers #13: On change of field value for CRM variables
CRM variables provide global access to a variable across an entire extension. They also help in the storage of user-specific data provided by the user at the time of installation, which can later be fetched to perform data functionalities. Additionally,
Extension pointers: Extend end-user benefits and allow personalization by implementing extensions with custom actions
From our earlier post on custom actions, we know that we can create templated actions, share them with end users, and allow them to reuse those actions to achieve personalized outcomes. In this post, we'll look at how custom actions make it easy for users
Extension pointers - Simple yet significant pointers #12: Functions for Zoho CRM extensions
Functions are essential in achieving logical functionality for an extension. You can easily code your functions in Deluge using drag-and-drop tools to meet your requirements. How to create functions for Zoho CRM extensions in Sigma Go to Sigma and select
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.