Forum Discussion

manohar's avatar
manohar
Contributor
5 years ago

Rest Post with attachment and form data

Hello Snaplogic gurus,

Can any one give me pointers how I can convert this into snaplogic pipeline?

Thanks
Manohar

curl -L -X POST ‘https://test.coupahost.com/api/purchase_orders/471/attachments
-H ‘Accept: application/json’
-H 'X-COUPA-API-KEY: xxxxxx
-F ‘attachment[file]=Coupa_Supplier_termsv5.pdf’
-F ‘attachment[type]=file’
-F ‘attachment[intent]=Supplier’

3 Replies

  • dimitri_hristov's avatar
    dimitri_hristov
    Contributor

    I’ve put together a sample pipeline. In it I use a Mapper Snap to create the needed input for the XML Formatter Snap.

    XML_with_Mapper_2020_06_29.slp (6.8 KB)

    Hope it helps to clarify, or muddify 🙂 the matter further.

    BR,
    Dimitri