AnsweredAssumed Answered

Design AFX connector to accept multiple entitlements in any capabilities

Question asked by Amit Khatua on Apr 21, 2017

Hello, 

 

How can I configure connector to take multiple app roles during any capabilities ? My use case - 

 

1. RSA is connected to end application via REST API

2. The sample request xml for add application role to an account is - 

<addition>

      <account_id>jdoe</account_id>

      <app_roles>

               <app_role_id>102</app_role_id>

      </app_roles>

</addition>

This can be configured in add app role to an account capabilities of the connector. OK

3. The sample request xml for addition of multiple app role -

<addition>

       <account_id>jdoe</account_id>

      <app_roles>

         <app_role_id>102</app_role_id>

         <app_role_id>104</app_role_id>

         <app_role_id>105</app_role_id>

      </app_roles>

</addition>

We are not sure how many app roles requester is selecting, solution to implement this and pass it to connector ?

 

NOTE: We can always go ahead with point # 2 as AFX Fulfillment Handler node is smart enough to split this kind of requests into multiple add app role requests and call the add app role capabilities multiple times ( I can see there are multiple payload in table   for one request) , but why to call API multiple times where the API itself is ready to accept multiple app role ids ? 

 

Thanks !

Outcomes