Visual Builder

Get Involved. Join the Conversation.

Topic

    Vinod Kumar Kv
    Filter Criteria for Rest Call in Action ChainAnswered
    Topic posted October 16, 2018 by Vinod Kumar KvBronze Medal: 1,250+ Points, last edited October 22, 2018 by Arijit ChakrabortyBronze Trophy: 5,000+ Points, tagged REST, Services, Tip 
    753 Views, 6 Comments
    Title:
    Filter Criteria for Rest Call in Action Chain
    Summary:
    Filter Criteria for Rest Call in Action Chain
    Content:

    Hello,

    How do we provide Filter Criteria for Rest Call in Action Chain.

    Currently we see that we can provide filter criteria for Service Data Providers.

    Best Comment

    Vinod Kumar Kv

    Please find below the detailed outline for business scenario:
    1) We have created a normal business object in VBCS. This business object supports (POST, GET, PATCH and other methods by default)
    2) Now we have a button on VBCS page. On click of this button we are calling an action chain.
    3) In this action chain we want to query data from VBCS business object with filter as (CID=someObjectID and STATUS='PROD')
    4) Whatever data will come from this query we want to use some of the fields from that data on popup form.

    In short before opening the popup window we want to query data from one business object with filter and use it in popup form.

     

    Comment

     

    • Shay Shmeltzer

      Which service are you calling?

      If it is not a Business Object based service, does it actually support the filterCriteria approach?

      Or is the service expecting parameters for queries to be passed in another way? (on the URL for example)

    • John Ceccarelli

      filterCriteria is only available on ServiceDataProviders and ArrayDataProviders, where you wouldn't be setting a REST action manually. If you're trying to do a manual REST call and want to add a filter, it depends on the REST service's query params. For Business Objects and most ADF (SaaS) rest APIs you'd set the q param.

    • Rajat Kumar

      Hi,

      Thank you for your inputs on the issue. I am looking for a solution where in when I am calling a REST endpoint in Dev instance the url will be: https://hostname1:443/ic/api/integration/v1 but the same REST endpoint for Prod will be: https://hostname2:443/ic/api/integration/v1. So is there a way by which I can lookup the hostname and change it dynamically on the basis of environment names rather than manually changing the same upon imports to different environments.

      Thanks.

    • Vinod Kumar Kv

      Thanks

      Is there a way to call ServiceDataProviders and ArrayDataProviders in action chain?

    • Vinod Kumar Kv

      Please find below the detailed outline for business scenario:
      1) We have created a normal business object in VBCS. This business object supports (POST, GET, PATCH and other methods by default)
      2) Now we have a button on VBCS page. On click of this button we are calling an action chain.
      3) In this action chain we want to query data from VBCS business object with filter as (CID=someObjectID and STATUS='PROD')
      4) Whatever data will come from this query we want to use some of the fields from that data on popup form.

      In short before opening the popup window we want to query data from one business object with filter and use it in popup form.