Skip to main content

Dear Community, 

We would like to build some integration, and I started to investigate the possibilities. 

I saw we can call REST APIs from Event actions, so I tried it.

My test is very simple, I would like to create a PO header in test IFS if someone create a PO in an other IFS test instance. 

I have this event action: 

Body: 

 

But I got this error in Application messages: 

 

I googled it and also looked around in the community, but I only found this article
Call REST API from event action with Bearer Authentication | IFS Community

 

When I tried the same call from Postman, it worked without any issues.

Do you have any idea what I might be missing?

 

We are on IFS Apps 10 UPD21. 

Thank you very much in advance for all ideas and thoughts!

Kind regards, 

Balazs

Hi @bapehu 

Probably the exception is due to the way you expressed the additional headers.

Please change the headers according to the below and see if it works.

  • Additional Header Parameters: Header parameters that would be set to the HTTP request header can be set here. Enter the parameters in the form <parameter>:<value> in a comma seperated list. When you call an OData API (Projection), then you must configure two additional header parameters which are: Accept:application/json

Events (ifs.com)

 

Hope it helps!

Damith


Hi @bapehu 

Probably the exception is due to the way you expressed the additional headers.

Please change the headers according to the below and see if it works.

  • Additional Header Parameters: Header parameters that would be set to the HTTP request header can be set here. Enter the parameters in the form <parameter>:<value> in a comma seperated list. When you call an OData API (Projection), then you must configure two additional header parameters which are: Accept:application/json

Events (ifs.com)

 

Hope it helps!

Damith

Hi Damith, 

Thank you very much for your input, it was very useful. 

That error disappeared but I got an other one: 
 

 

I tried to follow the process what I found here: 

PKIX path building failed error when sending message from IFS Application to Boomi integration | IFS Community

I extracted the other IFS App server certificate from it’s landing page and I added the following to the header: 

But the result is the same error message as above. 

Also tied to follow that link on that other post but that is for IFS Cloud and I didn’t found the upload certificate in Apps10 IEE. 

Thank you very much in advance for any idea! 

kind regards, 

Balazs


Hi @bapehu 

 

The topic you mentioned is for IFS Cloud and it mention options on how to add the certificate in java CA certs.

Please follow below instructions on how to add the certificate in Apps10. You may need help from a Technician to do this since it needs to be done in the application server.

  • Put the certificate in <ifs_home>/instance/<instance>/security/certs/import/ folder in the application server
  • Run the IFS Installer in reconfigure mode.

Check the documentation for more details.

Secured Communication (ifs.com)

See section under IFS Middleware Server certificates and trust

 

Hope it helps!

Damith


Hi @bapehu 

 

The topic you mentioned is for IFS Cloud and it mention options on how to add the certificate in java CA certs.

Please follow below instructions on how to add the certificate in Apps10. You may need help from a Technician to do this since it needs to be done in the application server.

  • Put the certificate in <ifs_home>/instance/<instance>/security/certs/import/ folder in the application server
  • Run the IFS Installer in reconfigure mode.

Check the documentation for more details.

Secured Communication (ifs.com)

See section under IFS Middleware Server certificates and trust

 

Hope it helps!

Damith

Thank you very much again Damith! 

Awesome! It helped and it is working. 

Now I receive only a Warning message. 

sounds like these: 

Do you have any idea? 

Thank you so much again for your help! 

Kind regards, 

Balazs


@bapehu 

Were you able to fix the MI_RETRIVAL_ERROR? What was the problem :)


@bapehu

Were you able to fix the MI_RETRIVAL_ERROR? What was the problem :)

Honestly, I have no clue what happened, and I haven’t seen this before, but that message changed and I got a message what I could understand. 

Luckily I didn’t close window with the old message so currently I have 2 open windows with the old status (left side) and new status (right) of the same message ID. 

But I could understand the second message:

Exception while sending data 
Caused by: ifs.fnd.connect.http.InternalServerErrorException: InternalServerErrorException: 500#{"error":{"code":"DATABASE_ERROR","message":"Database error occurred. Contact administrator.","details":t{"code":20110,"message":"ORA-20110: PurchaseOrder.WRONG_CO_NO_: This order number already exists. Enter a new number or clear the field."}]}}

 

 

Kind regards, 

Balazs


Reply