function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jim FieldJim Field 

Has anyone successfully made a callout from Apex to Infor ION IMS using the multipart message? I am looking for an example of how to do it.

I need to send XML bods to ION IMS from Apex, but I cannot find any examples of how to send a multipart message from Apex.  I need the body to send two parameters:  

1. ParameterRequest - a JSON based list of parameters
2. MessagePayload - the actual XML containing the Salesforce data.

Does anyone know how to do this?
SwethaSwetha (Salesforce Developers) 
HI Jim,
I couldn't find any documentation of Apex to Infor ION IMS.
The below articles should help you get started:
https://gist.github.com/benaneesh/c4f22796d243afd1521a690593ebdc92

https://salesforce.stackexchange.com/questions/132135/how-can-i-compose-a-multipart-form-data-request

https://docparser.com/blog/post-file-salesforce-apex-external-http-webservices/

https://salesforce.stackexchange.com/questions/179814/salesforce-apex-posting-multipart-form-data-content-type
If it helps, please mark the answer as best.Thank you