You need to sign in to do that
Don't have an account?
geeta garg
WebService
Hi,
This is the request part of Webservice Api.
curl -v -u user@yourcompany.com:test -F "attachments[]=@/path/to/attachment1.ext" -F "attachments[]=@/path/to/attachment2.ext" -F "email=example@example.com" -F "subject=Title" -F "description=this is a sample" -X POST 'https://domain.test.com/api'
I want to use this request in Apex class. How can i use it? Please suggest.
Thanks,
Geeta Garg
This is the request part of Webservice Api.
curl -v -u user@yourcompany.com:test -F "attachments[]=@/path/to/attachment1.ext" -F "attachments[]=@/path/to/attachment2.ext" -F "email=example@example.com" -F "subject=Title" -F "description=this is a sample" -X POST 'https://domain.test.com/api'
I want to use this request in Apex class. How can i use it? Please suggest.
Thanks,
Geeta Garg
Regards,
Krishna.
I am trying to upload attachment with other content into another third party using API.Above written code is the request code for this.I did not understand how to use it.
Thanks,
Geeta Garg
http://salesforce.stackexchange.com/questions/51162/what-is-the-max-size-of-an-attachment-the-we-can-move-to-3rd-party-server-using
Hope this helps.
Regards,
Krishna.
I am trying this with postman tool. But i am getting error 502 Bad Gateway.
I am attaching some screenshots so that you can tell me what i am doing wrong.
Thanks,
Geeta Garg
Please see these screenshot of postman and it is working in postman.But In apex code, it is not working.
Please suggest me what i will change so that it will work.
Thanks
Geeta Garg
I added the endpoint and i am getting Bad Request 400 error.
I think that i am given all the values in wrong format.
Thanks,
Geeta Garg