Code Monkey home page Code Monkey logo

Comments (4)

gvs42 avatar gvs42 commented on May 24, 2024 1

I am not able to get any parameters/variables into the workflow execution as stated in the documentation. The URL in the documentation is:

chrome-chrome-extension://infppggnoaenmfagbfknfkancpbljcca/execute.html#/workfloId?variableA=value&variableB=10

Issues:

  • the "chrome-chrome-extension" schema should only be "chome-extension"
  • any kind of "variable..." parameter to the url does not appear in the workflow logs

Can you improve the documentation and check how to setup the parameter/variable injection?

from automa.

zzph avatar zzph commented on May 24, 2024

I am in the same position, has anyone figured this out?

I tried many methods (as outlined here: https://docs.automa.site/workflow/variables.html).

I've tried: {{variables.myVar}}, $$myVar, and a few more- none work. Please help

from automa.

zzph avatar zzph commented on May 24, 2024

I've found the problem, code needs to be updated. I tried opening a PR, but when pushing it says Permission to AutomaApp/automa.git denied

The issue:

Here, you are not correctly passing the search params from the URL:
https://github.com/AutomaApp/automa/commit/5f1caf11735e2b0c55c6418918a3932e900451b2#diff-411f1a3a9aae65d635492a191d9577c3fd8fdeeb0a7726f050ad04d1c65e3453R13

Rather than doing this:

  searchParams.forEach((key, value) => {
    variables[key] = decodeURIComponent(value);
  });
  return { workflowId: workflowId ?? '', variables };

You can just do this:

  const variables = Object.fromEntries(searchParams);
  ...
  return { workflowId: workflowId ?? '', variables };

from automa.

Kholid060 avatar Kholid060 commented on May 24, 2024

Fixed in v1.28.27

from automa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.