BigInt Failure for Saved Workflow

BigInt Failure for Saved Workflow

Hi,

I am currently trying to create a workflow as follows: When a record is created in one module (Volunteer Events), it takes what is in the "Areas Requested" multi-select field and sends an email to each match on a "Areas of Interest" multi-select field in another module (Volunteers). For example, when an event is created with the Areas Requested being Data;Art;Cooking, it sends an email out to volunteers in the Volunteers module who have Areas of Interest containing Data, Art, or Cooking (checking one by one respectively). Here is my code.

// Fetch the event details from the new Volunteer Event record
contactMap = zoho.crm.getRecordById("Volunteer_Events",areasRequested);
eventName = contactMap.get("Name");
eventBlurb = contactMap.get("Event_Blurb");
eventAreas = contactMap.get("Areas_Requested");
// Initialize a list to store volunteer email addresses
volunteerEmails = list();
// Loop through each area of interest to find matching volunteers
for each area in eventAreas
{
// Search for volunteers with matching tags
volunteers = zoho.crm.searchRecords("Volunteers","(Tags:equals:" + area + ")");
for each  volunteer in volunteers
{
// Add volunteer email to the list (avoid duplicates if necessary)
email = volunteer.get("Email");
if(email != null && !volunteerEmails.contains(email))
{
volunteerEmails.add(email);
}
}
}
// Create the email content
emailSubject = "Upcoming Volunteer Event";
emailBody = "Hello,\n\nWe are excited to announce an upcoming volunteer event:\n\n" + "Event Name: " + eventName + "\n" + "Description: " + eventBlurb + "\n\n" + "Best regards";
// Send email to each volunteer
for each  email in volunteerEmails
{
sendmail
[
from :zoho.adminuserid
to :email
subject :emailSubject
message :emailBody
]
}

So the code works and everything saves, meaning there is no error when trying to save the function itself.. However, when I try to test it by adding a record on Volunteer Events, it gives me the following error: Data type of the argument of the function '756' did not match the required data type of '[BIGINT]'at lineNumber 4.

Here are a few clarifications: I've ensured all API field names are correct and not mistyped. The field types are as follow: Name
is single line, Event Blurb is multi-line, and Areas Requested is multi-select. 

Please let me know how I can get past this issue. Thanks!
    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方