I have a Requirement where I need to trigger the WEB API in different Environments(this can be multiple selection) ,and this has to be done dynamically.The problem here is how can I pass the user name and passwords for different Environments in a!httpAuthenticationBasic() of HTTP query smart service dynamically based on user selection(we are in 17.1 version )
Discussion posts and replies are publicly visible
Each argument in a!httpAuthenticationBasic() is created with a!scsField() (except for the last one), so you'll need to have a mapping somewhere (DB, decision table, expression rule, constants, etc.) specifying the Secure Credentials Store details for each authentication field for each environment. Having this foundation, I would consider doing the same for the other environment-specific details of the Web API call (URL, for example.)