Adding Account tags to associated Project
Hello,
I am trying to edit a function that I created to also pass along the account Tag to its associated project.
The function I created below is used to create and associate a project to its account (I created a workflow to kickoff this function once the field "order number" contains a value):
//acctId = acctId.ToLong();id = "raiment";mp = Map();mp.put("name",businessName + ": " + orderNumber);mp.put("template_id",1936048000000054005);mp.put("start_date",zoho.currentdate.toString("MM-dd-yyyy"));mp.put("owner",773544597);created = zoho.projects.createProject(id,mp,"projects");info created;projectid = created.get("projects");for each rec in projectid{ projid = rec.get("id"); projname = rec.get("name");}mp = Map();mp.put("name",projname);contdet = Map();contdet.put("id",acctId);mp.put("accounts",contdet.tolist());datalist = List();datalist.add(mp);datamp = Map();datamp.put("data",datalist);resp = invokeurl[ url :"https://www.zohoapis.com/crm/v2/Accounts/" + acctId + "/Zoho_Projects/" + projid type :POST parameters:datamp.toString() connection:"projects"];info resp;
.................................................
Along with the account name/order number I'd like to pass the Tags that are on the accounts to also appear on the Project.
Sticky Posts
Function #41: Sync Associated Subforms!
Welcome back everyone! The last custom function showed how to update a Contact with Product details from it's Related list in Deals. This week, let's look at a function that lets you update subform records in two modules simultaneously when one of them is updated. Business scenario Let's look at how subform helps in an education institution that has deployed Zoho CRM. National Public School, Austin (made up, of course!) has set up Zoho CRM and it follows the same relationship pattern of "Students",
Zoho Pagesense Resources
Zoho SalesIQ Resources
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Desk 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.