API Connect

API Connect

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#API Connect
#Applicationintegration
#APIConnect
 View Only
Expand all | Collapse all

How to route 2 backends using Switch policy in IBM API connect V10

  • 1.  How to route 2 backends using Switch policy in IBM API connect V10

    Posted Wed September 03, 2025 08:35 PM
    Hi Everyone 

    I am facing difficulty in invoking the backends based on incoming request payload filed contains XYZ12233.

    If prefix contains XYZ we need to call one backend and just 12233 contains we need to call another backend in IBM API connect V10.

    Regards 
    Nagendra B 


  • 2.  RE: How to route 2 backends using Switch policy in IBM API connect V10

    Posted Thu September 04, 2025 02:17 AM
    Hi,

    For a quick check, this should work in switch 
    $(contains(message.body.id, 'XYZ'))

    FYR - huge list of conditions mentioned, you can refer and play around here






  • 3.  RE: How to route 2 backends using Switch policy in IBM API connect V10

    Posted Thu September 04, 2025 02:28 AM
    Hi,

    For a quick check, this should work in switch 
    $(contains(message.body.id, 'XYZ'))

    you should use parse as a first action in your flow.

    FYR - huge list of conditions mentioned, you can refer and play around here