Update Portal User Name using Deluge?

Update Portal User Name using Deluge?

Hey everyone.

I have a basic intake form that gathers some general information. Our team then has a consultation with the person. If the person wants to move forward, the team pushes a CRM button that adds the user to a creator portal. That process is a CRM function that calls a webhook that calls a Creator function. The process works except it only creates the email and then sets the name and username based on the email prefix. I was hoping there was a way to pass the contacts name during the creation or we could update the portal user after it's created. Is this possible? Below are my codes.

CRM Function
  1. string button.createCreatorPortalUser(Int accountId)
  2. {
  3. try 
  4. {
  5. // 1. GET THE ACCOUNT RECORD
  6. accountDetails = zoho.crm.getRecordById("Accounts",accountId);
  7. // 2. GET THE PRIMARY CONTACT NAME
  8. primaryContactName = accountDetails.get("Associated_Contacts");
  9. if(primaryContactName != null)
  10. {
  11. // 3. FIND THE CONTACT IN CRM
  12. searchResults = zoho.crm.searchRecords("Contacts","(Full_Name:equals:" + primaryContactName + ")");
  13. if(searchResults.size() > 0)
  14. {
  15. contactDetails = searchResults.get(0);
  16. contactEmail = contactDetails.get("Email");
  17. contactFullName = contactDetails.get("Full_Name");
  18. if(contactEmail == null || contactEmail == "")
  19. {
  20. return "❌ Error: The primary contact '" + contactFullName + "' is missing an email address.";
  21. }
  22. // 4. PREPARE JSON BODY
  23. paramMap = Map();
  24. paramMap.put("fullName",contactFullName);
  25. paramMap.put("email",contactEmail);
  26. paramMap.put("sendInvite","true");
  27. jsonBody = paramMap.toString();
  28. // 5. CALL THE CREATOR CUSTOM API
  29. response = invokeurl
  30. [
  31. url :"https://www.zohoapis.com/creator/custom/jaimefurtado2/Add_Portal_User"
  32. type :POST
  33. parameters:jsonBody
  34. headers:{"Content-Type":"application/json"}
  35. connection:"crm_to_creator"
  36. ];
  37. info "Creator Response: " + response;
  38. // --- Simplified user messages ---
  39. if(response.get("result") != null)
  40. {
  41. statusVal = ifnull(response.get("result").get("status"),"");
  42. msgVal = ifnull(response.get("result").get("message"),"");
  43. if(statusVal == "success")
  44. {
  45. return "✅ Portal user created successfully. " + msgVal;
  46. }
  47. else if(statusVal == "info")
  48. {
  49. return "ℹ️ Portal user already exists. " + msgVal;
  50. }
  51. else
  52. {
  53. return "⚠️ Portal user operation completed, but with warnings: " + msgVal;
  54. }
  55. }
  56. else
  57. {
  58. return "⚠️ Unexpected Creator response. Please check logs.";
  59. }
  60. }
  61. else
  62. {
  63. return "❌ Error: The primary contact '" + primaryContactName + "' could not be found in the Contacts module.";
  64. }
  65. }
  66. else
  67. {
  68. return "❌ Error: The 'Associated_Contacts' field is empty on this Account record.";
  69. }
  70. }
  71. catch (e)
  72. {
  73. info "Exception: " + e;
  74. return "❌ An unexpected system error occurred: " + e;
  75. }
  76. }

Creator Function
  1. map addPortalUser(string fullName, string email, string sendInvite)
  2. {
  3. try 
  4. {
  5. // --- Validate inputs ---
  6. if(email == null || email.trim() == "")
  7. {
  8. return {"status":"error","message":"Email is missing or invalid"};
  9. }
  10. if(fullName == null || fullName.trim() == "")
  11. {
  12. return {"status":"error","message":"Full name is missing or invalid"};
  13. }
  14. // --- Assign to a real profile in THIS portal (case-sensitive) ---
  15. profileName = "Customer";
  16. // <-- change if your portal uses a different name
  17. resp = thisapp.portal.assignUserInProfile(email,profileName);
  18. info "AssignUser RAW Response: " + resp;
  19. // New user path
  20. if(resp != null && resp.containKey("status") && resp.get("status") == "success")
  21. {
  22. return {"status":"success","message":"Portal user added and assigned to: " + profileName};
  23. }
  24. // Already-exists path
  25. else if(resp != null && resp.containKey("emailId"))
  26. {
  27. existingProfile = profileName;
  28. if(resp.containKey("profileName"))
  29. {
  30. existingProfile = resp.get("profileName");
  31. }
  32. return {"status":"info","message":"User already exists. Ensured/retained profile = " + existingProfile};
  33. }
  34. // Anything unexpected
  35. else
  36. {
  37. return {"status":"error","message":"Unexpected Creator response: " + resp};
  38. }
  39. }
  40. catch (e)
  41. {
  42. info "Exception: " + e;
  43. return {"status":"error","message":"An unexpected error occurred: " + e};
  44. }
  45. }
    • Recent Topics

    • Organization wide Account and Contacts Visibility/Sharing Capabilities?

      Has anyone figured out a way to make visibility or sharing of Accounts and Contacts to be available across the entire organization without having to have every individual user edit their Sharing permissions? For our sales folks they need to be able to
    • Mail Merge in Zoho Desk

      Hello Team, Do we have an option of mail merge within Zoho Desk like we have in Zoho CRM? We have a requirement to generate some pdf file in the form of mail merge doc from the ticket.
    • Zoho vault filling in a form it's not supposed to fill in

      Hey there, I have a problem with ZOHO Vault autofill. In a software package, we have these options: For some reason zoho vault always replaces what's in the top option and fills a 2fa password in there, and then saves that value.. Meaning whatever was
    • When Does WorkDrive integrate with Books?

      When Does WorkDrive integrate with Books?
    • Uplifted homepage experience

      Editions: All editions. Availability update: 17th February 2026: All editions in the CA and SA DC | JP DC (Free, Standard and Professional editions) 23 February 2026: JP (All Editions) | AU, CN (Free, Standard, Professional editions) 27 February 2026:
    • Quickbooks Integrations Stopped Working

      All of our Quickbooks integrations have stopped working. I am checking in to see if: a) this is a known issue b) if anyone else is having this issue. As usual, Zoho support is unavailable.
    • Notification of Interaction Assignment

      If a user is assigned an interaction, they should be notified via email. These are almost useless because if I assign an interaction for someone to respond to, they dont know that I assigned it to them without me telling them or them logging in and discovering
    • Countries List Global Set- Complete with Phone Country Code and Continent.

      Dear Zoho Team I saw your recent addition to the Global Sets regarding the Countries list and states. While working on it, why didn't you also add things like Continent and Phone Country Code? Also, some ISO codes from some Countries/regions are mis
    • Custom Display Field for Lookup Dropdowns in Zoho CRM

      Could Zoho CRM support changing the display field in lookup dropdowns, like Zoho Creator does? This would make it much easier to select the right record by showing a more useful field instead of only the default one. It would improve speed, clarity, and
    • Message as bot

      I would like to be able to send a Cliq message truly as a bot. the current implementation of this function, while it sends the message as a bot it sends that message inside a chat from the user how authenticated the flow cliq connection instead of directly
    • Custom Button makes scroll bar go down in report

      I have a report with a Custom button called Completed. A colleague mentionned to me that when he pressed this custom button it scrolled down the page which is annoying since he want to stay at the same space on the repoort. There is no reload linked to
    • CRM x WorkDrive: We're rolling out the WorkDrive-powered file storage experience for existing users

      Release plan: Gradual rollout to customers without file storage add-ons, in this order: 1. Standalone CRM 2. CRM Plus and Zoho One DCs: All | Editions: All Available now for: - Standalone CRM accounts in Free and Standard editions without file storage
    • See a list of all records enrolled in a cadence?

      I am looking for a way to see a list of all leads or contact currently enrolled in a cadence. I do not see any way to do this through the cadence UI.
    • Manage Testing Process in Zoho Sprints

      Agile framework supports a robust quality assurance system that incorporates continuous testing throughout the development lifecycle of the product. The agile testing team focuses on planning the testing around the development, identifying defects early
    • Books <-> CRM synchronisation with custom Fields

      Hello, We are synchronising Books Customers with CRM Accounts. In CRM Accounts I set up last year a "segments" multiselect field shown below In Books, I set up a custom multi-select field with the same value as in the CRM And set up the synchronisation inside Books. Want to synchronise the Books Segments with the CRM Segments, but the later doesn't exist, and another non-existing is there ?! First, I don't understand where the field Segmentation is coming from. Second, I set CRM Segmentation to sync
    • Trouble with using Apostrophe in Name of Customers and Vendors

      We have had an ongoing issue with how the system recognizes an apostrophe in the name of customers and vendors. The search will not return any results for a name that includes the mark; ie one of our vendors names is "L'Heritage" and when entering the
    • Recording overpayment?

      So a customer just overpaid me and how do I record this? I can't enter an amount that is higher than the invoice amount. Eg. Invoice is $195 and he sent $200. He's a reccuring customer so is there a way to record so that he has a $5 advance for future invoice?
    • Zoho Books | Product updates | February 2026

      Hello users, We’ve rolled out new features and enhancements in Zoho Books. From Advanced Reporting Tags to the ability to mark projects as completed, explore the latest updates designed to improve your bookkeeping experience. Introducing Advanced Reporting
    • Introducing the New Zoho Assist Quick Support Plugin

      We are thrilled to announce the new Zoho Assist Quick Support Plugin, the upgraded and enhanced version of the Zoho Assist Customer Plugin. This new plugin allows organizations and IT administrators to deploy it directly onto their customers’ devices,
    • Automate your signing workflows with Zoho Sign + n8n

      Hello! We're excited to announce that Zoho Sign is now available as a community node on n8n, a popular open-source workflow automation platform used by tens of thousands of teams worldwide. n8n lets you connect apps, APIs, and services through a visual
    • Ask the Experts 27: Onboarding and managing agents

      Hello everyone, We are back with our Ask the Experts (ATE) series for 2026. This year, we bring experts to help you address customer support challenges using Zoho Desk. For our first ATE, we are getting into the human side of customer support. "Every
    • Retainer invoice in Zoho Finance modlue

      Hello, Is there a way of creating retainer invoices in the Zoho Finance module? If not can I request this is considered for future updates please.
    • Spotlight #27: Embed visual collaboration Spaces in your presentations using the Vani add-on

      Hello everyone! This month’s spotlight feature is the Vani add-on for Zoho Show. Every time you pause your presentation to open another tab or pull up supporting material, you lose a bit of momentum. At Zoho Show, we design features that keep everything
    • CRM

      Is anyone else experiencing this issue? Our company is not moving out of using Gmail's web app. It just has more features and is a better email program than Zoho Mail. Gmail has an extension (Zoho CRM for Gmail) that we're using but we've found some serious
    • Good news! Calendar in Zoho CRM gets a face lift

      Dear Customers, We are delighted to unveil the revamped calendar UI in Zoho CRM. With a complete visual overhaul aligned with CRM for Everyone, the calendar now offers a more intuitive and flexible scheduling experience. What’s new? Distinguish activities
    • Global Search / Command Palette in Live App

      Zoho Creator applications can contain many forms, reports, pages, and dashboards. While navigation inside the app is smooth, users still need to move through multiple menus or screens to find specific records or open particular modules. Currently, in
    • New 2026 Application Themes

      Love the new themes - shame you can't get a little more granular with the colours, ie 3 different colours so one for the dropdown menu background. Also, I did have our logo above the application name but it appears you can't change logo placement position
    • Smarter appointment allocation with round-robin distribution

      Greetings from the Zoho Bookings team! We’re excited to introduce the Appointment Distribution feature, a new way to decide how appointments are assigned among users. By default, appointments are distributed evenly across all event types, but this enhancement
    • Dynamic image in form works in the app but not on the customer portal.

      img = frm_Fichas[ID == input.Nombre].Foto; imgno = Nophoto[ID2 = 1].Image; if(len(img) > 1) { img = img.replaceAll("/sharedBy/appLinkName/",zoho.appuri); img = img.replaceAll("viewLinkName","Fichas_de_personal_public"); img = img.replaceAll("fieldName","Foto");
    • A2P 10DLC Opt-in Rejection Issue with Zoho Creator Public Form

      Hi everyone, I’m working on an A2P 10DLC SMS campaign and running into repeated rejections due to opt-in issues. I’m using Zoho Creator for the registration flow. The form is public (no login required). Users enter their phone number and there is an unchecked
    • Make Quick Edits to Images Before Attaching

      Hello everyone, We have enhanced how attachments are handled in tickets to help agents preview and share files more efficiently in Zoho Desk. Agents can preview image attachments before adding them to tickets and edit them using attachment annotator.
    • 3/18 オンライン勉強会のお知らせ Zoho ワークアウト (無料)

      ユーザーの皆さま、こんにちは。コミュニティチームの中野です。 3月開催のZoho ワークアウトの開催が決定しましたのでご案内します。 今回はZoomにて、オンライン開催します。 ▶︎参加登録はこちら(無料) https://us02web.zoom.us/meeting/register/BoNTN7zYR8OvOPGShqBY0A ━━━━━━━━━━━━━━━━━━━━━━━━ Zoho ワークアウトとは? Zoho ユーザー同士で交流しながら、サービスに関する疑問や不明点の解消を目指すイベントです。
    • Incorrect Functioning of Time Logs API (Version 3)

      We need to fetch the list of time logs for each task for our company internal usage. We are trying to achieve it by using the next endpoint: https://projects.zoho.com/api-docs#bulk-time-logs#get-all-project-time-logs Firstly, in the documentation the
    • Extend color coding to custom picklist fields

      Objectively, Projects has the best UI of any Zoho app — clean, intuitive, and never feels bloated. Big props to whoever owns the design. Feature request: color coding for custom picklist field values in field customization. You've already done it in two
    • New in Office Integrator: In-sheet text translation

      Hi users, We're pleased to introduce translation capability in the spreadsheet editor in Zoho Office Integrator. This allows you to translate the text in your spreadsheet's cells into 70+ languages from within your web app. Office Integrator's spreadsheet
    • What is the best way to convert MSG file to Word format?

      The best way to convert MSG files to Word format is by using a reliable and professional tool Aryson MSG file Converter. Manual methods are often time-consuming and may not preserve email formatting, attachments, or metadata accurately. In contrast, Aryson
    • Streamline email communication with Out of Office configuration

      Managing user communication effectively is the key to ensuring timely responses and consistent messaging. However, when users are unavailable, the absence of an Out of Office response can lead to delays and missed expectations. Managing these settings
    • ZOHO CRM Button Integration

      Hi Team, I’m currently working with Zoho CRM along with a custom application where I fetch deal details from the CRM and use them based on my requirements for each deal. Now, I want to enhance this setup. I plan to create a button on the Deal Detail page
    • Changing settings for auto logoff

      I've noticed that when I haven't used Cliq for a while, I have to re-enter my password. That is really clumsy, especially if you have a complicated password. Because it won't be filled in automatically. Is there a way to change that behaviour? We are
    • A few Issues when using "Pay Bill via Check"

      We have quite a bit of issues with how paying for Bills via Check works. Would love some feedback from the Zoho team in case we are doing something incorrectly. 1. When we go from a vendor and select "Pay Bill via Check" option, we see ALL the outstanding
    • Next Page