• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
TRIGGERcmd
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Command with Parameters from Integromat

Linux
2
4
439
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    affa
    last edited by Jan 7, 2022, 10:33 PM

    Hello,

    I would like to bring the data from my CRM connected through Integromat to a text file on a Ubuntu machine.

    I have set up the integromat scenario like this:integromat.jpg

    And the command like this:

    Screenshot from 2022-01-07 17-25-02.jpg

    Which gets this result:

    endresult.jpg

    My main question is how do I bring the "note content" into the part of the triggercmd trigger so that the text file shows the note content.

    Thanks!

    R 1 Reply Last reply Jan 7, 2022, 11:14 PM Reply Quote 0
    • R
      Russ @affa
      last edited by Russ Jan 7, 2022, 11:16 PM Jan 7, 2022, 11:14 PM

      @affa, please try this:

      Create a script that writes the first parameter to your output.txt file:

      echo 'echo $1 >> /home/workhorse/Documents/Data/output.txt' > /home/workhorse/crm.sh
      

      Make the script executable:

      chmod +x /home/workhorse/crm.sh
      

      Test the script:

      /home/workhorse/crm.sh "testing 1234"
      cat /home/workhorse/Documents/Data/output.txt
      

      Change your "Test Script" command in your TRIGGERcmd agent to this:

      /home/workhorse/crm.sh
      

      Russell VanderMey

      A 1 Reply Last reply Jan 8, 2022, 3:30 AM Reply Quote 0
      • A
        affa @Russ
        last edited by Jan 8, 2022, 3:30 AM

        @Russ Thanks so much for your help so far! That worked for the commands but I'm still stuck on getting the data from Integromat through TriggerCMD!

        I can run the script both from the command line and from the GUI of TriggerCMD, however, it doesn't seem to want to carry the data over from Integromat.

        For example if I run this script with Base64 from the GUI it works as intended:

        Screenshot from 2022-01-07 22-18-20.png

        However, when I run it from integromat I get a blank file:

        Screenshot from 2022-01-07 22-24-49.png

        I have tried it with the base64 on both in the TriggerCMD and as variable modules in integromat and I get the same result. Any ideas?

        Screenshot from 2022-01-07 22-25-33.png

        Screenshot from 2022-01-07 22-25-17.png

        R 1 Reply Last reply Jan 8, 2022, 3:51 AM Reply Quote 0
        • R
          Russ @affa
          last edited by Russ Jan 8, 2022, 3:54 AM Jan 8, 2022, 3:51 AM

          @affa, I'd like to narrow down the problem.

          Does it work if you use the Parameters button on the website?
          4701b125-7b34-47c8-b4c8-6ab82b380741-image.png

          4095952f-1b6d-432b-870b-21e30394ef63-image.png

          We should make sure this works before moving on to Integromat.

          Russell VanderMey

          1 Reply Last reply Reply Quote 0
          1 out of 4
          • First post
            1/4
            Last post