Copy Value from one field from one Module to Another

Copy Value from one field from one Module to Another

Hello!

So, I tried making a ticket about this with a chat representative person but it didn't really help me much so I was wondering if you guys could help me understand this better.

I'm new to Deluge but the idea is there's a "Lots" field in both Contacts and Lots modules. I was watching a video on this to give some assistance but unfortunately I've stumbled upon this issue and I'm not sure how to get out of it or debug it. 

With getRelatedRecords, I know the third parameter could use the toLong method, but I needed to test it out with a contact first so I grabbed the contact's ID for it.

Something does pop up when it executes but it's entering the value that brings up the errors beneath the code.

Code:
connect_lots = zoho.crm.getRelatedRecords("Related_List_Name_1", "Contacts", 4818466000000408236);

info connect_lots;

for each lotss in connect_lots
{
createamap = Map();
createamap.put("Lot_Of_Interest", Name);
update_it = zoho.crm.updateRecord("Lots",lotss.get("Name"),createamap);
info update_it;
// for every new lot
}

-----
"Name" is from the Lots module, "Lot_Of_Interest" is from the Contacts module.
I had it initially set as lotss.get("id") but still got the same error.
-----

Error(s): (I added the first info on purpose to see if the issue comes from the first line and it seems it might be?)
Info
  • {"code":"INVALID_TOKEN","details":{},"message":"invalid oauth token","status":"error"}
Failed to execute function
  • Argument type mismatch - Found 'TEXT' but Expected '[BIGINT]' for the function 'get' Line Number:9


      • Sticky Posts

      • How to Add Users to your Organization in ZohoMail?

        A better clarity so you can create other users to start using Zoho Mail. You can directly Add Users from the Control Panel to your Organization. You can invite users with the existing email address. If the person (user) already uses ZohoCRM, then you can import users from Zoho CRM. You can also import them using a .csv file. (if you are planning to add them in Bulk)  In this topic, We will be discussing on how to Add and Invite users only.  The Import options are self explanatory. ____________________________________________________________________________________________________________