Deluge Script: Onboarding → Access Form

Deluge Script: Onboarding → Access Form

Hello everyone,

Edit: Sorry, I think I put this topic in the wrong section.

I’ve recently run into an issue that’s been giving me a bit of a headache for the past few weeks.

Context:
This is my first time using Deluge to create a script, but it’s not my first time coding. I built an onboarding application in Creator. What I’d like now is that whenever we create/update an onboarding record, it should also create/update an "Access" form that gathers all the accesses of the person in question.

To do this, I wrote a script that triggers after the creation/update event (Onboarding → Created or Edited → Successful form submission → Access granted on Onboarding). The Access form contains the fields "Name", "Onboarding ID", and a subform "Software Access" which includes the fields "Name" and "Access Type".

Script:
// ----- Onboarding ▸ On Success (Created or Edited) -----
// 1) Get Onboarding ID
access_list = Access[Onboarding_ID == input.ID.toLong()];
info "access_list: " + access_list;
info "Added_Time: " + input.Added_Time;
info "Modified_Time: " + input.Modified_Time;

// Initialization
rows = List();
access_rec = Map();
sf_list = List();
existing = List();

// If form existing
if(input.Added_Time != input.Modified_Time)
{
    access_rec = access_list.get(0);
    info "access_rec: " + access_rec;
    sf_list = access_rec.get("Software_Access");
    if(sf_list != null)
    {
        for each  sf in sf_list
        {
            existing.add(sf);
        }
    }
    if(input.Microsoft && !existing.contains("Microsoft 365"))
    {
        m = Map();
        m.put("Name_Software_Access","Microsoft 365");
        m.put("Access_Type","User");
        rows.add(m);
    }
    //Add another SaaS

    // Update form
    if(rows.size() > 0)
    {
        access_rec.Software_Access = rows; // -> Error: Variable "access_rec not define"
    }
}
else
{
    if(input.Microsoft == true)
    {
        m = Map();
        m.put("Name_Software_Access","Microsoft 365");
        m.put("Access_Type","User");
        rows.add(m);
    }
    //Add another SaaS

    // Create form  
    if(rows.size() > 0) // <- //
    {
        newSA = add into Acces
        [
            Name_access    = input.Name_Onboarding;
            Onboarding_ID  = input.ID.toLong();
            Software_Access = rows;
        ]; // -> Syntaxe error
    }
}



I can’t figure out what I did wrong. I’ve checked the documentation to understand how Deluge works but i find the documentation not really understandable. I tested, at last resort, with our friends Charlie (ChatGPT) & Cursor to try and pinpoint my mistake, but nothing seems to work and I'm stuck.

Could someone explain to me where I am wrong ?
      • Recent Topics

      • make.com integration

        Just wondering if anyone on Zoho One account connecting apps to Make.com We're on Canadian server (.com) and when connecting to Make.com, it keeps having error of Invalid Client ID. I have contacted both Zoho and Make and both sides said it's not an error
      • Article Numbers for KB articles

        Hello, I was wondering if it's possible to turn on article numbers/ part numbering for KB articles. If this is not already a feature, we'd like to request it. Frequently a solution will require multiple articles so tracking which articles are referenced
      • Refund Request ,Zoho Mail Subscription (zoho suport is not replying)

        Hi Zoho Team, I recently subscribed to the Zoho Mail yearly plan, but after evaluating it, I found that the interface does not suit my workflow. I’ve already canceled the subscription from my end. As I’m well within your 30-day refund window, I’m requesting
      • File Encryption - Zoho Desk iOS app update

        Hello, Everyone! We have now introduced the 'File Encryption' option within the Zoho Desk app as part of the HIPAA Compliance. This option allows the user to encrypt the attachments within the Desk mobile app, which acts as an additional layer of security.
      • Data encryption - Zoho Desk iOS

        Hello, Everyone! In the recent iOS version(v2.8.23) of the Zoho Desk app, we have supported data encryption. As a part of HIPAA Compliance, the Zoho Desk mobile app now allow users to encrypt the Desk mobile database as an additional layer of security.
      • Notify Admin when a user forgets to check-in or check-out at the designated time.

        Hello, I would like notify the Admin via email when a user forgets to check-in or check-out at the designated time. What is the best way to setup this email notification?
      • Assistance Needed with Prospect Conversion Issue

        Hi, I attempted to convert a prospect to an account, but received a pop-up notification indicating that the contact information matches an existing contact. I selected the option to add it to the existing contact, but it appears the prospect was not successfully
      • Mail Merge - unable to send more than 50 email

        Hi, I've subscribed to the pay email service because of the Mail Merge feature. However, I've found that this feature only allow to send up to 50 emails. I've to attach a screenshot for your reference. This limitation is not mentioned anywhere in service.
      • Zoholics Europe 2025: Your Ultimate Data Analysis (Zoho Analytics) Workshop Experience

        Why should you attend? This year, Zoholics Europe 2025 is putting data analysis centre stage. With a dedicated workshop designed to answer all your data-related questions, you’ll gain practical skills, real-time solutions, and expert insights that you
      • UK payroll entries

        Hey guys, Nett payroll payments are imported direct into the bank, using an external payroll system (will be glad for Zoho to have a UK payroll app) At present I have monthly recurring bills for HMRC which are auto entered & paid when due. This seems
      • Closing Accounting Periods - Invoice/Posting dates

        Hi, I have seen in another thread but I'm unsure on how the 'transaction locking' works with regards to new and old transactions. When producing monthly accounts if I close December 24 accounts on 8th Jan 25 will transaction locking prevent me from posting
      • Invoice status on write-off is "Paid" - how do I change this to "Written off"

        HI guys, I want to write off a couple of outstanding invoices, but when I do this, the status of the invoices shows as "Paid". Clearly this is not the case and I need to be able to see that they are written off in the customer's history. Is there a way
      • Reverse Charge Services (Non-EU) Showing Correctly in 84/85 and 67, But Missing in Box 46 - Germany

        Hi, I'm located in Germany and I’ve set up my expenses for non-EU services (e.g., OpenAI, DeepSeek) under the reverse charge mechanism (§ 13b UStG) in Zoho Books, and I noticed some discrepancies in the VAT Summary Report. What’s Correct: Reverse Charge
      • Zoho Live Chat/Support

        What is going on with Zoho support lately? I've tried to use the live chat feature 4 different times and it refuses to connect to any (despite waiting over 30 minutes one of the tries). I finally gave up and emailed my question nearly a week ago and still
      • Can we have a module to records Certificate No and TDS rates for Lower TDS Certificates by the vendors ?

        Can we have a module to records Certificate No and TDS rates for Lower TDS Certificates by the vendors ?
      • Tip #38- Track Organizational Changes: A Guide to Using Action Log Viewer- 'Insider Insights'

        Hello Zoho Assist Community! Ever needed to trace who did what and when within your remote support operations? Let’s say your support team is growing, and you want to monitor key activities like settings updates, user invites, module changes, or permission
      • Tip of the Week #67– Avoid confusion – Mark duplicate threads.

        When customers send the same message to multiple email addresses, such as support@ and sales@, your team may end up seeing the same message in different inboxes. This creates confusion, risks double replies, and clutters your workspace. Use the Mark as
      • Tax in Quote

        Each row item in a quote has a tax value.  At the total numbers at the bottom, there is also a Tax entry. If you select tax in both of the (line item, and the total), the tax doubles. My assumption is that the Tax total should be totalling the tax from
      • Final Reminder: Discontinuation of Older ASAP Widgets and Mobile SDK Support

        We launched the new ASAP Help Widget last year, introducing a unified and enhanced experience. Since then, older configurations have been placed in read-only mode, with all major updates and improvements built exclusively on the new version. As part of
      • Zoho Subscriptions -- Zoho Commerce integration

        Is there integration between Zoho Subscriptions and Zoho Commerce? I would like to create subscription plans in Zoho Subscritpions and list them for on my Zoho Commerce store.
      • Website show Blank white screen

        Customer called me to tell me my website is currently down upon review it shows a white screen however I can access everything via editor. JITCADCAM.com
      • How manufacturing analytics can transform your enterprise with Zoho Projects Plus

        Did you know that every single car is made up of 30,000 to 40,000 individual parts? All of these are manufactured meticulously in various facilities before being assembled into one. The global manufacturing industry spans a wide range from delivering
      • Projects custom colors replaced by default orange

        Since yesterday, projects uploaded to Zoho, to which I had assigned a custom color, have lost the customization and reverted to the default color (orange). Has anyone else had the same problem? If so, how did you resolve it?
      • Customize your SalesIQ live chat with Custom CSS and blend it with your website design

        Hi everyone. Hope you all are having a great day! SalesIQ offers various inbuilt customization choices for your chat widget and window like changes in colour, theme, font etc. Although these choices are many, sometimes they may not match with the design
      • From Email Address When Replaying to Missed Chats

        One of the most common things we do is follow up on every missed chat.  Missed chats are like money in the bank, people just waiting for your response and to start a relationship with our companies. However, SalesIQ only lets you respond from 1 email address from your entire account?! We have happily paid for 4 subscriptions, but our users cannot reply from their own email address?  How are we supposed to build customer relationships? The fix to this issue is so simple, just load in the logged in
      • how to treat a same person as customer and vendor in zoho

        hi team, in my company, few persons acting as creditors as well as debtors (which means sometimes we pay them... some times we paid by them). in that case i would like to maintain a same ledger for that person.in zoho books it is treating creditor and
      • Narrative 6 - The impact of rebranding

        Behind the scenes of a successful ticketing system - BTS Series Narrative 6 - The impact of rebranding Every organization has invested in branding to set itself apart, and that should be reflected in the help desk. Zoho Desk enables organizations to apply
      • custom color palette for picklist in Sheet

        Migrating over from Google Sheets and missing the ability to customize the individual item colors of my picklist/dropdown menus. Is this something that is possible? A search showed me creating a custom color palette in Analytics is possible but I am not
      • What's New - July 2025 | Zoho Backstage

        Start smart, end strong. From knowing who’s coming to celebrating who showed up, July’s updates help you run events that feel organized from the first invite to the final thank you. Planning an event used to be like writing a choose-your-own-adventure
      • Image Upload Field API get encrypted ID and sequence number

        Hello is there a way to extract the encrypted id and sequence number from image upload fields through the Zoho CRM API? I created a custom script with javascript within Zoho CRM, but I want to extract the encrypted id and sequence number for all my images
      • Attention: Changes to 10DLC TCR pricing and new authentication requirements

        Hi everyone, Starting August 1, 2025, The Campaign Registry (TCR) is introducing new pricing changes and a mandatory brand verification process called Authentication+ 2.0, which will affect how you register and manage your 10DLC messaging services. These
      • Better Time Tracking

        We need better time tracking customization for IT MSPs. We also need reporting that is built in, rather than having to try and fumble with creating custom reports. We also need to be able to mark whether a ticket has been billed or not, I don't think
      • Scheduled Tickets Need Updated

        There is a very clunky manual way to create reoccurring scheduled tickets. This should be created to be easy for the administrator to create. We create several (10 to 12) reoccurring tickets per account for biweekly and monthly auditing purposes.. The
      • Team Feeds Improvements

        Team Feeds needs to show a feed of every action within the department. Currently it seems that the feed will only show a ticket that I've personally commented on or interacted with/followed. A feed should be that, a feed. As a manager I would like to
      • Better Security, Better User Experience | Help Center Update | June'25

        As part of our commitment to enhancing user experience and security, we are happy to announce updates to our authentication mechanism. This update introduces several key enhancements designed to improve the password recovery process and streamline the
      • Upload Logo to Account Page

        It would be nice to set a logo for an Account
      • View Agent Collision on Ticket List Page

        It would be nice from the ticket listing page (views) to see what agents are working on what tickets rather than having to click into each ticket throughout the day to see what agents are working on what tickets. This functionality would also be desired
      • Restrict user from viewing the detail standard view

        Is there any way to restrict a user(it can be user-field-based) from viewing the detail standard view? Basically, I have created a canvas detailed view so that on some conditions I can hide some data from the users but the standard view client script
      • Upload Picture to Contact

        It would be nice to upload a profile picture to a contact.
      • Ticket Status Colors

        Can i change the colors of Ticket Status in the admin panel? Or even change the background of the entire cell of a Critical ticket? This way its easy for my agents to see a urgent ticket when it comes in. Right now everything is black text. Here Right
      • Next Page