โ09-27-2020 03:59 PM
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โ
โ09-28-2020 01:58 AM
Hi @manohar,
You can use REST POST snap in which you can set header parameters in HTTP header section:
If you want to attach a file to POST service, you have to upload the file in SLDB at first and then you can specify the file in Single file upload: File, as well as the name you want to be used, for instance:
Donโt forget to remove the file (by using File Delete snap) after you call the rest service.
BR,
Lazo
โ09-29-2020 05:53 AM
Thanks Lazzo,
How or where can I add this form data?
โ09-29-2020 07:53 AM
Hi @manohar,
You use the โHTTP entityโ of the snap for the form data (shown in the last print-screen).