Can PipeDream be Used to Design EDI-AS2 Server Type Workflows?

This topic was automatically generated from Slack. You can find the original thread here.

: Can EDI-AS2 server type workflows be designed within PipeDream?

Based on the information provided in the RELEVANT PIPEDREAM DOCUMENTATION section and the rules for answering questions, there is no direct mention of EDI-AS2 server type workflows within the provided documentation. Pipedream supports a wide range of integrations and allows for custom logic through Node.js, Python, Golang, or Bash code, which could potentially be used to design workflows that interact with EDI-AS2 servers. However, without specific documentation or examples related to EDI-AS2 within Pipedream’s resources, I cannot confidently provide a detailed answer or guide on setting up EDI-AS2 server type workflows in Pipedream. For more specialized use cases like EDI-AS2, it might be necessary to develop custom logic using Pipedream’s support for running code. If you have specific requirements or need further assistance, I recommend reaching out for more personalized support. You can visit Pipedream’s support page for more help or to inquire about specific integrations and capabilities related to EDI-AS2. If you’re looking to integrate with an app or service not currently supported by Pipedream, you can also submit a new integration request via this form.

Hi , can you tell me more about this standard? It’s still over HTTP yes? Just a specific format of the message?

: Yes AS2 is a protocol that uses HTTP or HTTPs to send EDI messages. This has a huge use case in B2B commerce. Where companies are paying EDI providers lots in terms of licensing. PipeDream can potentially disrupt that.

Got it, very interesting. This is the first I’ve heard of this.

Is there an AS2 HTTP client that you can install from npm or PyPI in code steps to make these requests?

Just curious on what you’re trying to build, and see if I can help

I am trying to build a AS2 server using Pipedream. The server can receive EDI message using AS2 protocol and then convert that to whatever format that a supplier needs.

Supplier would receive EDI Purchase Order. Now the supplier then responds with Order confirmation, Shipping, Invoices and hence these documents will be sent back as an EDI doc from the same server to the customer’s ERP.

Very cool, so basically you can make an HTTP triggered workflow, with a Python code step to convert the AS2 message into JSON, operate on it and then respond in AS2?

Yes. But there are some certificate level customizations i.e., AS2 and encryption algorithms customization that is preventing me from implementing the same in PipeDream. But I will go forward and seek help from this group once I hit a real roadblock.

I think I understand. Is the certificate a file? Or can you store it as an ENV var?

It is a file.

Did you take a look at File Stores? That’ll let you persist files between workflow executions and easily download them into the workflow env: