cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to add URL parameters to a function import call in Action Project in SAP BPA

rohit_singhal
Active Contributor
0 Kudos
3,892

Hi All,

Greetings of the day!

I am facing a peculiar issue in using Function Imports from oData services in Actions Projects.

The scenario is as follows:

  • Using Action Groups in automation to replace individual API calls being made previously.
  • The action project has been created using a destination and an oData end point.
  • A single Action Project created where Get, Post and Patch calls are working.
  • Issue is in Function Imports for the same Action Project.

Issue Description:

1. On adding the function import, the URL parameters are listed in Body of the Input.

If I test using this, I get the error:

Invalid Function Import Parameter '<ParameterName>'

2. If I remove the keys from the Body, and manually add them in the parameters as query/header/path/custom

On testing this gives one of the two types of errors:

a. Invalid Function Import Parameter '<ParameterName>'

b. The call throws a javascript error in console log and the screen remains in busy mode.

Is there a way, in which I can introduce the URL parameters in the suffix, instead of adding these parameters through body/parameters?

How would I go about doing this.

Working custom web service call URL:

rohit_singhal_0-1747268961895.png

Action Project, looks issue:

rohit_singhal_1-1747269070883.png

Best Regards,

Rohit

View Entire Topic
rohit_singhal
Active Contributor
0 Kudos

Finally resolved the issue.

I removed the function import methods provided through the API manifest. I then added the same function imports using custom actions.

With this, I could add the URL parameters in the API call.

I just had to make all the relevant configuration in the Input fields.

Best Regards,

Rohit

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos
With actions you can completely control the OData URL parameters, which means you can make use of alot of great OData functionality, whether v2 or v4 ... great that everything is working for you