Posting on LinkedIn Directly from Zoho Cliq

Posting on LinkedIn Directly from Zoho Cliq

Are you tired of switching back and forth between Zoho Cliq and LinkedIn to make a simple post? Well, there's good news! With the following instructions, you can post directly on LinkedIn from within Zoho Cliq. Let's get started!

Step 1: Generate an OAuth Token

To post on LinkedIn from Zoho Cliq, you'll need to generate an OAuth token. Here's how to do it:
  • Go to the LinkedIn Developer page and create a new app by clicking on "Create app"

  • Enter your app name, LinkedIn page, and app logo, then agree to the terms and conditions and click on "Create app".

  • Navigate to the "Products" tab and request access for "Share on LinkedIn" and "Sign In with LinkedIn".

  • Go to the OAuth Tools page and create a new access token.
  • Congratulations! You've successfully generated an OAuth token.

Step 2: Configure the OAuth Token in Zoho Cliq

Now that you have your OAuth token, it's time to configure it in Zoho Cliq. Here's how:
  • Go to https://cliq.zoho.com and navigate to "Profile" > "Bots & tools" > "Integrations" > "Command" > "Create".
  • Enter a command name, hint, access level, and click on "Save".
  • Copy and paste the following code:
  1. inputs = List();
  2. inputs.add({"type":"textarea", "name":"description","label":"Description","placeholder":"What do you want to talk about?","min_length":"0","max_length":"1000","mandatory":true});
  3. inputs.add({"name":"file","label":"Add a Photo","placeholder":"Please upload a photo to upload.","mandatory":false,"type":"file"});
  4. return {"type":"form","title":"Create a post","name":"linkedinPost","hint":"","button_label":"Submit","inputs":inputs,"action":{"type":"invoke.function","name":"linkedinPost"}};
  • Next, go to "Profile" > "Bots & tools" > "Integrations" > "Function" > "Create".
  • Name your function "linkedinPost", enter a hint, choose the function type as form, and click on "Save".
  • Copy the code below and paste it inside the form submit handler.
  1. formValues = form.get("values");
  2. textContent = formValues.get("description");
  3. file = formValues.get("file");
  4. // fetch access token
  5. token = "Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  6. headersMap = Map();
  7. headersMap.put("Authorization",token);
  8. headersMap.put("LinkedIn-Version","202208");
  9. fetchUserID = invokeurl
  10. [
  11.  url :"https://api.linkedin.com/v2/me"
  12.  type :GET
  13.  headers:headersMap
  14. ];
  15. info fetchUserID;
  16. userID = fetchUserID.get("id");
  17. if(file.length() == 0)
  18. {
  19.  params = {"author":"urn:li:person:" + userID,"lifecycleState":"PUBLISHED","specificContent":{"com.linkedin.ugc.ShareContent":{"shareCommentary":{"text":textContent},"shareMediaCategory":"NONE"}},"visibility":{"com.linkedin.ugc.MemberNetworkVisibility":"PUBLIC"}};
  20.  createPost = invokeurl
  21.  [
  22.   url :"https://api.linkedin.com/v2/ugcPosts"
  23.   type :POST
  24.   parameters:params + ""
  25.   headers:headersMap
  26.   detailed:true
  27.  ];
  28.  info createPost;
  29. }
  30. else
  31. {
  32.  initializeParams = {"initializeUploadRequest":{"owner":"urn:li:person:" + userID}};
  33.  initializeUpload = invokeurl
  34.  [
  35.   url :"https://api.linkedin.com/rest/images?action=initializeUpload"
  36.   type :POST
  37.   parameters:initializeParams + ""
  38.   headers:headersMap
  39.  ];
  40.  info initializeUpload;
  41.  imageUrl = initializeUpload.get("value").get("uploadUrl");
  42.  imageID = initializeUpload.get("value").get("image").toList(":").get(3);
  43.  uploadFile = invokeurl
  44.  [
  45.   url :imageUrl
  46.   type :PUT
  47.   parameters:file
  48.   headers:headersMap
  49.   detailed:true
  50.   content-type:"application/octet-stream"
  51.  ];
  52.  info uploadFile;
  53.  if(uploadFile.get("responseCode") == 201)
  54.  {
  55.   params = {"author":"urn:li:person:" + userID,"lifecycleState":"PUBLISHED","specificContent":{"com.linkedin.ugc.ShareContent":{"shareCommentary":{"text":"Good Afternoon everyone"},"shareMediaCategory":"IMAGE","media":{{"status":"READY","description":{"text":"Center stage!"},"media":"urn:li:digitalmediaAsset:" + imageID,"title":{"text":"First LinkedIn Post"}}}}},"visibility":{"com.linkedin.ugc.MemberNetworkVisibility":"PUBLIC"}};
  56.   createPost = invokeurl
  57.   [
  58.   url :"https://api.linkedin.com/v2/ugcPosts"
  59.   type :POST
  60.   parameters:params + ""
  61.   headers:headersMap
  62.   detailed:true
  63.   ];
  64.   info createPost;
  65.  }
  66.  else
  67.  {
  68.   return {"text":createPost.get("responseText").get("message"),"card":{"theme":"10"}};
  69.  }
  70. }
  71. if(createPost.get("responseCode") == 201)
  72. {
  73.  return {"text":"Post created successfully","type":"banner","status":"success"};
  74. }
  75. else
  76. {
  77.  return {"text":createPost.get("responseText").get("message"),"card":{"theme":"10"}};
  78. }
  79. return Map();
  • That's it! You can now use the command you created in Step 2 to post directly on LinkedIn from Zoho Cliq.
We hope this guide was helpful. Now, you can post on LinkedIn without leaving Zoho Cliq. Happy posting! 

    Access your files securely from anywhere







                        Zoho Developer Community





                                              Use cases

                                              Make the most of Zoho Desk with the use cases.

                                               
                                                

                                              eBooks

                                              Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho Desk.

                                               
                                                

                                              Videos

                                              Watch comprehensive videos on features and other important topics that will help you master Zoho Desk.

                                               
                                                

                                              Webinar

                                              Sign up for our webinars and learn the Zoho Desk basics, from customization to automation and more

                                               
                                                
                                              • Desk Community Learning Series


                                              • Meetups


                                              • Ask the Experts


                                              • Kbase


                                              • Resources


                                              • Glossary


                                              • Desk Marketplace


                                              • MVP Corner


                                                        • Sticky Posts

                                                        • New in Zoho Chat: Threaded conversation at its finest best

                                                          Perform effective team communication in Zoho Chat with our new 'Reply' option.   Converse and stay focussed on the parent conversation, rather than getting entangled in the web of several, never-ending sub threads.   To reply to a certain message, all you need to do is hover to the left hand side of the message. Then, click on the three dots to open a pop up menu. Here, click on the Reply button and type the reply to the message in the compose box and press Enter.   Voila, that was pretty simple. 
                                                        • Changes in Cliq iOS app notification due to iOS 13 and Xcode 11

                                                          Hello everyone! With the iOS 13 update, Apple has updated its policy on usage of VoIP push notifications. Over the past few months, we tried our best to provide a similar experience with the updated policy.  Changes in iOS 13:  With iOS 13, Apple mandates all VoIP push notifications to be reported to the CallKit framework as a new call. If a VoIP push notification is not reported to the CallKit within a designated time window, iOS will terminate the app. If enough VoIP push notifications are not
                                                        • What's new in Zoho Cliq - June 2020 updates

                                                          Hello again, everyone! I'm back to share with you the recent feature improvements and updates that we've pulled together for enhancing your experience in Cliq. Here's what's new this June for you all in Cliq's web and iOS app! New on Cliq Web: Drag and drop files to a chat in your left side panel   Now you can drag and drop attachments from your open conversation window to a specific chat or channel in the left side menu without opening it. Swift up actions and collaborate efficiently with Cliq's
                                                        • 4 Things You Should Do Once You Get Started with Cliq

                                                          Hey there, new user!  You've successfully logged in and set up your organization and you're all set to start working. What's next? Buckle up because here are 4 essential things you need to do first in order to get the most out of your Cliq experience:   1. Invite your colleagues   Now that you've set up your Cliq for business, you need to bring in all your employees, of course, because how else can you collaborate with them?   To invite your colleagues to Cliq, head on over to the Admin Panel which
                                                        • New in Zoho Chat : Search for contacts, files, links & conversations with the all new powerful 'Smart Search' bar.

                                                          With the newly revamped 'Smart Search' bar in Zoho Chat, we have made your search for contacts, chats, files and links super quick and easy using Search Quantifiers.   Search for a contact or specific conversations using quantifiers, such as, from: @user_name - to find chats or channel conversations received from a specific user. to: @user_name - to find chats or channel conversations sent to a specific user. in: #channel_name - to find a particular instance in a channel. in: #chat_name - to find


                                                        Manage your brands on social media



                                                              Zoho TeamInbox Resources



                                                                  Zoho CRM Plus Resources

                                                                    Zoho Books Resources


                                                                      Zoho Subscriptions Resources

                                                                        Zoho Projects Resources


                                                                          Zoho Sprints Resources


                                                                            Qntrl Resources


                                                                              Zoho Creator Resources



                                                                                  Zoho CRM Resources

                                                                                  • CRM Community Learning Series

                                                                                    CRM Community Learning Series


                                                                                  • Kaizen

                                                                                    Kaizen

                                                                                  • Functions

                                                                                    Functions

                                                                                  • Meetups

                                                                                    Meetups

                                                                                  • Kbase

                                                                                    Kbase

                                                                                  • Resources

                                                                                    Resources

                                                                                  • Digest

                                                                                    Digest

                                                                                  • CRM Marketplace

                                                                                    CRM Marketplace

                                                                                  • MVP Corner

                                                                                    MVP Corner







                                                                                      Design. Discuss. Deliver.

                                                                                      Create visually engaging stories with Zoho Show.

                                                                                      Get Started Now


                                                                                        Zoho Show Resources


                                                                                          Zoho Writer Writer

                                                                                          Get Started. Write Away!

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

                                                                                            Zoho CRM コンテンツ






                                                                                              Nederlandse Hulpbronnen


                                                                                                  ご検討中の方




                                                                                                        • Recent Topics

                                                                                                        • When will Sales Order and Invoice Synchronisation with Zoho CRM be Available?

                                                                                                          When will Sales Orders and Invoices, created in Zoho Books or Inventory be made available in Zoho CRM? John Legg Owner: The Debug Store
                                                                                                        • Feature Requests and enhancements: Subform

                                                                                                          By The Grace of G-D. Hi, It would make it much easier to use if we could have some more features in subforms: More Columns/Fields Set the size of a column Show the subform in Full Page Width Sorting By Column Please consider The above suggestions. T
                                                                                                        • Clone a Module??

                                                                                                          I am giong to repurpose the Vendors module but would like to have a separate but very similar module for another group of contacts called Buyers. I have already repurposed Contacts to Sellers. Is it possible to clone (make a duplicate) module of Vendors
                                                                                                        • Empowered Custom Views: Cross-Module Criteria Now Supported in Zoho CRM

                                                                                                          Hello everyone, We’re excited to introduce cross-module criteria support in custom views! Custom views provide personalized perspectives on your data and that you can save for future use. You can share these views with all users or specific individuals
                                                                                                        • Unapplied AP Credits not showing up on AP Detail Aging

                                                                                                          I am new to using Zoho Books. I was reconciling some accounts and found differences from the GL balance and AP Aging and it came down to unapplied vendor credits. Is there an option to include that on the report, so I can pull a matching AP Aging to the
                                                                                                        • Add Entry and Subform Record from Deluge Scripts

                                                                                                          Hi all,  I would like to know how do I add a new entry and also subform records from a deluge scripts.  I can use the insert into to add a new entry to a form, but how do i insert a collection into the subform of the entry? I am using a deluge script
                                                                                                        • i keep see there is a connetion issue connecting 3rd party api on zoho when using zia

                                                                                                          hi there , i have set up open ai api to zoho zia (copied and pasted to zoho zia) but I keep getting notificaiton "there is a connetion issue connecting 3rd party api on zoho" when using zia on top when click zia and try to type in word there
                                                                                                        • Finding draft ticket replies

                                                                                                          Is there a way to see all tickets which have draft replies?
                                                                                                        • How to apply a tag to a ticket based on the to email address?

                                                                                                          I need to assign a tag to a ticket if the ticket was sent to a specific email address. For example, we have the email accounting[at]company.com forwarding into Zoho Desk. We would like all emails that were sent to this address to be tagged with an Accounting
                                                                                                        • Engineering Change Order Process using Tickets?

                                                                                                          Hi Zoho Community, I'm working with my company to create an Engineering Change Order/Request (ECO/ECR) process where engineers can internally create tickets for changes in a product that must be reviewed, approved and implemented by people or teams in
                                                                                                        • Allow Changing Appointment Status from "Completed" to "No Show" or Other Valid States

                                                                                                          Hi Zoho Bookings Team, We hope you're doing well. We would like to submit a feature request regarding appointment status management in Zoho Bookings. 🎯 Use Case Sometimes, an appointment is mistakenly marked as Completed, but later we realize that the
                                                                                                        • How can I move a ticket from Department A to Department B?

                                                                                                          Hi there, how do I move ticket from Department A to Department B? I went in the ticket and tried to scroll down the menu under the "department" but it won't let me, I am a support admin. Did I do anything wrong? or am I doing it in the wrong place?
                                                                                                        • Validation Rules Trigger on Untouched Fields

                                                                                                          In Zoho Desk, validation rules trigger for ALL fields during an update—even fields that weren't modified in the current edit. This behavior is fundamentally different from Zoho CRM and other Zoho products, where validation rules only apply to fields actually
                                                                                                        • How to work with getFieldNames formdata functions ,Any Examples

                                                                                                          I don't find any example showing usage of getFieldNames. Where do i find .is there any Help documents available
                                                                                                        • Zoho Notifications - Received two notifications for one message and none for the other

                                                                                                          We had a client reply to a ticket twice in one minute. The ticket owner received two emails for the second message but none for the first (which was crucial content and unfortunately was therefore missed). I'm assuming this created a race condition -
                                                                                                        • Can we have Backorder Management ?

                                                                                                          Can we have Backorder Management ?
                                                                                                        • Better integration between Zoho CRM and Zoho Bookings

                                                                                                          I've noticed that when a meeting which was created in Zoho Bookings is updated by a sales person in Zoho CRM, the change is not reflected back into Zoho Bookings. I have raised this with support who advised that meetings created in Bookings need to be
                                                                                                        • What is the difference between "Reply" and "Public Comment" in a ticket?

                                                                                                          Hey, my company is thinking about switching to Zoho Desk but we do not understand the difference between the "Reply" and the "Public Comment" feature. When should we use which? And why? What is the difference between them? Thank you for your help! Kindest
                                                                                                        • Tasks View for Opportunity/Jobs does not indicate "Related To" account

                                                                                                          How can ZoHo be setup so that when a task is created for an Opportunity, the subject automatically lists the underlying account? Right now, it's impossible to link the Account to the task when the task is created from the Job.  Therefore, the open task view is inadequate.  And it's a lot of maintenance to have to manually add the account to the subject...defeating the purpose of "Automated" workflow. 
                                                                                                        • Writing SQL Queries - After Comma Auto Suggesting Column

                                                                                                          When writing SQL Queries, does anyone else get super annoyed that after you type a comma and try to return to a new line it is automatically suggest a new column, so hitting return just inputs this suggested column instead of going to a new line? Anyone
                                                                                                        • can i show alert when i finish running the function?

                                                                                                          how i can show alert inside the custom function or popup notification. when i use alert inside the custom function it show this error Error at line number:  2 'ALERT' task can be used only in on load, on validate and on change actions ​
                                                                                                        • CRM calendar not syncing with Zoho Calendar

                                                                                                          The sync is not happening: This is my Zoho Calendar CalDAV synced with Outlook This is my Zoho CRM Calendar (sadly empty ...) I have enabled CalDAV Access. In Zoho Calendar, I have set up APP Calendar sync like this: What else can I check? Thank
                                                                                                        • Pipeline in Custom Modules

                                                                                                          I love the way the Sales Pipeline looks and functions with reports. I would like to add the save pipeline features and visualization to a custom module, however, I only see that these pipelines are only available for the Deals module. Is there a way to add pipelines to custom modules?
                                                                                                        • Ecommerce integration with prestashop

                                                                                                          Development of campaigns integration with prestahop. When???
                                                                                                        • Cannot associate event with other objects when creating?

                                                                                                          I am attempting to associate an Event with one or more other objects when creating it via the API. According to the API docs, the "Related_To" property is a jsonobject even though the description says "Provide the details about the entities the event
                                                                                                        • Zoho Cliq not working on airplanes

                                                                                                          Hi, My team and I have been having this constant issue of cliq not working when connected to an airplane's wifi. Is there a reason for this? We have tried on different Airlines and it doesn't work on any of them. We need assistance here since we are constantly
                                                                                                        • Departments in Zoho

                                                                                                          I'm trying to set up a department. It looks like Departments have been removed from Zoho One. Is there another option? We have our main account setup, but want to set up a separate small department that can't see our tabs.
                                                                                                        • How to disable subform records dynamically

                                                                                                          Hi Everyone I have a requirement to dynamically disable or hide subform fields based on certain criteria. However, the code I tried didn't work as expected. It either disabled or hid all the fields in all subform records or none at all. What I actually
                                                                                                        • Client Script Operate Timeout

                                                                                                          Hi Zoho, I have set a client script that use for ( i =1; length < i , i++) to fetch all of the product in order I have an order have 30+ products, seems this script will be stopped when it is checking rough 10 + products because of timeout (may be). May
                                                                                                        • Why and When to Manually Regenerate Reports?

                                                                                                          What is the protocol for needing to regenerate reports?  It is very confusing when data in reports pulls correctly sometimes, but are inaccurate other times.   Why is report regenerating necessary at all - can the report function not read the live data as inputted into the forms?  We have built lots of reports and it is very tedious and time consuming to have to regenerate the report before each use of that data to make sure it is accurate.  Is there a way to know when a report should or shouldn't
                                                                                                        • Import template from Zoho Writer

                                                                                                          I am trying to import a mail merge template - tried to import direct from my .docx file on my hard drive and the formatting went all over the place. I then imported the .docx file in my Zoho Docs and then fixed up the formatting within Zoho Writer. Can
                                                                                                        • CRM for Everyone - More Actions Option to Create Record

                                                                                                          Please consider the option create a new record for the module from the More Actions menu. I know there is an "Add New" icon further down the menu to create a record for any module, but this just seems more intuitive and could reduce the need for the "Add
                                                                                                        • Configuración

                                                                                                          Hola acabo de instalar Zoho CRM y quiero configurarlo correctamente. Al respecto me surgen algunas dudas tales como la diferencia entre: Cuentas, posibles Clientes y Contactos. ¿Conceptualmente que son cada uno? ¿Como se se relacionan entre ellos? Si
                                                                                                        • Is there a way to request a password?

                                                                                                          We add customers info into the vaults and I wanted to see if we could do some sort of "file request" like how dropbox offers with files. It would be awesome if a customer could go to a link and input a "title, username, password, url" all securely and it then shows up in our team vault or something. Not sure if that is safe, but it's the best I can think of to be semi scalable and obviously better than sending emails. I am open to another idea, just thought this would be a great feature.  Thanks,
                                                                                                        • Enhancements to Custom Connectors in Zoho Creator

                                                                                                          Hello everyone, At Zoho Creator, we believe in providing you with the necessary tools to achieve a well connected ecosystem of apps. Our Custom Connectors feature is a testament to this, enabling you to integrate with a wide range of external services
                                                                                                        • AutoScan Not Working Since April -Support says it with engineering

                                                                                                          Hi there, Autoscan has not been working on my account since April. Without this feature, completing expenses reports is laborious and error-prone. I keep asking for updates seeing as this is a critical feature, but told that it's being looked into and
                                                                                                        • Zoho books bulk update for invoices

                                                                                                          Hi Zoho team, Why only 25 invoices can be bulk update at a time. I am booking 800 to 900 invoices in a month. Please increase this limit? Please dont tell that you dont have enough request for this task. 25 limit for bulk update is too much low
                                                                                                        • Querying CloudSQL using NodeJS?

                                                                                                          How can I query CloudSQL over nodejs? Are there any rest apis from which I perform Select Queries in the data of a Workspace? In the v1 we had C#, Python, Java for CloudSQL Now I only see Java? I am confused about the overall API of Analytics, there any
                                                                                                        • Sending Email with Attachment (PDF, Excel file)

                                                                                                          Hi, I'm new to Zoho CRM and I'm setting up a flow to send an Email with Attachment when user reaching a certain stage of a Deal. In detail, I've created a Blueprint which requires user to attach a PDF file when reaching a certain point of the stage and
                                                                                                        • How to Integrate Zoho CRM with Traffic Rider Mod APK Unlimited Money?

                                                                                                          Hello, I am exploring the possibilities of integrating Zoho CRM with a mobile game app. I am working on a Traffic Rider Mod APK Unlimited Money version where we want to store user engagement data like session time, high scores, and in-app interactions.
                                                                                                        • Next Page