Skip to main content
Question

Is it possible to call DOC_NUMBER_COUNTER_API.FETCH_NEXT_NUMBER from a workflow?

  • Nov 18, 2026 5:40 AM UTC
  • 3 replies
  • 66 views

Forum|alt.badge.img+5

■ Question Details

I would like to call DOC_NUMBER_COUNTER_API.FETCH_NEXT_NUMBER from a workflow.

I followed the steps below to configure it, but no method is displayed in the method name list in the workflow Call action, so I cannot call the API.

Could you please advise if there are any additional settings or items that I should check?

■ Steps Performed

①Set DOC_NUMBER_COUNTER_API in the workflow Call action.

②Checked the method name list, but no methods were displayed.

■ Points Checked / Questions

When I checked DOC_NUMBER_COUNTER_API in API Explorer, I found that the Active setting was set to NO.

If I change this setting to ON, will the API become available for selection and invocation from the workflow Call action?
 

 

Also, is DOC_NUMBER_COUNTER_API.FETCH_NEXT_NUMBER actually an API that can be called from a workflow?

I would appreciate any advice or guidance on this matter.

Thank you in advance for your help.

3 replies

PhillBronson
Hero (Customer)
Forum|alt.badge.img+13
  • Hero (Customer)
  • Nov 18, 2026 11:13 PM UTC

​@akahirat Api here means the projection api. Look at API explorer to see what is available for that service 


Forum|alt.badge.img+5
  • Author
  • Sidekick (Partner)
  • Nov 20, 2026 12:51 AM UTC

​@akahirat Api here means the projection api. Look at API explorer to see what is available for that service 

Thank you for your reply.

I have checked the API in API Explorer and changed the Active setting to YES. However, the method name is still not displayed in the workflow Call action, so I am unable to call the API.

I would like to confirm whether DOC_NUMBER_COUNTER_API.FETCH_NEXT_NUMBER can be called from a workflow.

 

I believe this can be determined from API Explorer, but could you please let me know which section or property I should check to determine whether an API can be called from a workflow?

Thank you for your assistance.


Forum|alt.badge.img+6

Hi ​@akahirat, 

 

To clarify, DOC_NUMBER_COUNTER_API.FETCH_NEXT_NUMBER is an existing IFS PL/SQL package function, which can be verified in the database using ALL_OBJECTS and ALL_PROCEDURES.

However, a database PL/SQL API and a published Projection API operation are two different things. BPA Workflow cannot directly discover or invoke arbitrary PL/SQL package methods. The function must be exposed through a supported Projection API Function or Action MUST appear in the workflow Call action.

Therefore, even if the package exists in the database and the API is marked Active in API Explorer, this does not guarantee workflow availability. 

In short: The function's existence in the database does not necessarily mean it is callable from BPA Workflow.

I would suggest checking the projection metadata to confirm whether FETCH_NEXT_NUMBER is explicitly exposed. If not, a Custom Projection Configuration action wrapping the PL/SQL function could be an option.

Further, below commmunity thread may be helpful, although it uses OData, as it demonstrates using DOC_NUMBER_COUNTER_API.FETCH_NEXT_NUMBER to auto-increment a custom entity field: IFS Community – Auto-incrementing a custom entity field

One more question: Why are you not using IFS's standard document numbering functionality? Is there a specific requirement to generate the next number independently through a workflow rather than as part of standard document creation?

More details about the business use case, the type of number being generated, and where it needs to be assigned would help identify the most appropriate standard IFS solution or customization.