This topic was automatically generated from Slack. You can find the original thread here.
Mathias Foster : Hello, I’m trying to build a basic workflow:
Watch for new cards being created in Pipefy
When one comes in, fetch the card information by ID
Get one field, and search for additional information in another system
Update the card with the additional information, by ID.
I am stuck at step 2 – I don’t understand what Pipedream is asking me to put in the key and value fields?
Sergio Rodriguez : I checked. So , Pipefy API is GraphQL based, and the same endpoint is used for all actions: https://api.pipefy.com/graphql, you’ll see this URL in all Pipefy actions atm in Pipedream. For using a different API method, the GraphQL query sent to the URL needs to be different.
As you can see in the workflow editor, the param Graphql query is of object type. So in this case, you’d need to turn structured mode off, and reference to a proper Graph QL object, with the structure as in the documentation, the original workflow comes with an example, so for instance if I constructed the sample query in the previous steps I’d input {{steps.previous_step_to_lookupcard.graphql_query}}
Sergio Rodriguez : In general, when you see an object parameter in Pipedream with structured mode on, it expects you type each object prop under the key field, and its value in the value field.
Sergio Rodriguez : Oh, yeah, by looking at the screenshots, seems that Pipefy expects the “query” prop as part of the query text, so instead of using {{steps.nodejs.graphql_query.query}}