and more in a single search tool across platforms. Read the announcement here. |
02/09/2024 02:44 PM
Hello,
We want to create a JSON for acctEntParams from the following output which we get from our postman call
Postman Call Body
{
"BaseWebServerUrl": "{{baseWebURL}}",
"ApplicationName": "{{appName}}",
"XFCommandMethodType": "GroupsForUsers",
"MethodQuery": "{}{}",
"ResultDataTableName": "Groups",
"CustomSubstVarsAsCommaSeparatedPairs": ""
}
Postman Call Output
{
"Groups": [
{
"UserID": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"UserName": "Administrator",
"UserDescription": "",
"UserIsEnabled": true,
"Text1": "",
"Text2": "",
"Text3": "",
"Text4": "",
"GroupID": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"GroupName": "Administrators",
"GroupDescription": "",
"IsExclusionGroup": false
},
{
"UserID": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"UserName": "Administrator",
"UserDescription": "",
"UserIsEnabled": true,
"Text1": "",
"Text2": "",
"Text3": "",
"Text4": "",
"GroupID": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"GroupName": "Everyone",
"GroupDescription": "",
"IsExclusionGroup": false
},
The above output is only part of the output.
Sample acctEntParams JSON
"acctEntParams": {
"connection": "acctAuth",
"entTypes": {
"Group": {
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"processingType": "httpEntToAcct",
"http": {
"httpHeaders": {
"Authorization": "${access_token}"
},
"url": "https://{{serverName}}/api/DataProvider/GetAdoDataSetForMethodCommand?api-version={{APIversion}}",
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "username",
"entKeyField": "GroupID",
"acctIdPath": "GroupName",
"acctKeyField": "UserID"
}
}
}
}
}
Could you please help us understand what we need to change in our JSON so that it works perfectly based on the output we get for our Postman call?
02/09/2024 05:35 PM - edited 02/09/2024 05:43 PM
"listField": "Groups",
"entKeyField": "entitlementID",
"entIdField": "GroupID",
"acctIdPath": "userID",
"acctKeyField": "accountID"