Skip to main content
Question

Issue with an Outbound REST PATCH Request

  • Oct 28, 2026 11:13 AM UTC
  • 0 replies
  • 15 views

Forum|alt.badge.img+9

We are currently using IFS Cloud 25R1 and are experiencing an issue with an outbound REST PATCH request.

I am developing an integration that needs to send a simple PATCH request to a Salesforce endpoint.

 

The PL/SQL block I am using is shown below.

DECLARE

   headers_       PLSQLAP_Document_API.Document;

   url_params_    PLSQLAP_Document_API.Document;

   message_id_    NUMBER;

 salesforce_id_ VARCHAR2(18) := '1111';

 

   payload_       CLOB :=

      TO_CLOB('{"ERP_Account_Status__c":"Approved"}');

BEGIN

   headers_ :=

      PLSQLAP_Document_API.New_Document('HEADER_PARAMS');

   PLSQLAP_Document_API.Add_Attribute(

      headers_,

      'Content-Type',

      'application/json'

   );

   PLSQLAP_Document_API.Add_Attribute(

      headers_,

      'Accept',

      'application/json'

   );

   PLSQLAP_Document_API.Add_Attribute(

      headers_,

      'X-HTTP-Method-Override',

      'PATCH'

   );

   url_params_ :=

      PLSQLAP_Document_API.New_Document('URL_PARAMS');

   PLSQLAP_Document_API.Add_Attribute(

      url_params_,

      'param1',

      salesforce_id_

   );

   PLSQL_Rest_Sender_API.Call_Rest_EndPoint_Json(

      rest_service_       => 'SFDC_ERP_PREPROD',

      json_               => payload_,

      message_id_         => message_id_,

      url_params_         => url_params_,

      http_method_        => 'PATCH_NO-X',

      header_params_      => headers_,

      sender_             => 'IFS',

      receiver_           => 'EXTERNAL',

      message_type_       => 'APPLICATION_MESSAGE',

      subject_            => SFDC Update,

      in_order_           => FALSE,

      fail_notify_        => TRUE,

      accepted_res_codes_ => '200,204'

   );

 

   DBMS_OUTPUT.PUT_LINE(

      'Application message ID: ' || TO_CHAR(message_id_)

   );

 

END;

/

 

The code executes and creates an entry in Application Messages.

However, the message fails during processing with the error shown below.

 

I have confirmed that the PATCH request works successfully when sent through Postman.

Has anyone encountered a similar issue or can suggest what might be causing the request to fail in IFS?