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

    Command with Parameters from Integromat

    Scheduled Pinned Locked Moved Linux
    4 Posts 2 Posters 1.4k Views
    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 Offline
      affa
      last edited by

      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!

      RussR 1 Reply Last reply Reply Quote 0
      • RussR Offline
        Russ @affa
        last edited by Russ

        @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 Reply Quote 0
        • A Offline
          affa @Russ
          last edited by

          @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

          RussR 1 Reply Last reply Reply Quote 0
          • RussR Offline
            Russ @affa
            last edited by Russ

            @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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post