We are delighted to share our new EIC Delivery Methodology for efficiently managing Saviynt Implementations and delivering quick time to value. CLICK HERE.

approverejectEntOwnerCampaignAccEntDetails API return "An unexpected error occured"

randhir_kumar
New Contributor III
New Contributor III
Hi Team, 
We are using approverejectEntOwnerCampaignAccEntDetails API to perform action on child entitlement of Entitlement type certification when we are sending the bulkUpdate='Y' and approveComment which is returning 500 "An unexpected error occured".
Please find below request payload:
 
{
 
    "campaignid""1078",
    "certkey""2544",
    "verifier""prdusr24",
    "bulkUpdate":"Y",
   "approveComment":"approveChildLidComment9/3",
   
    "entitlements": [
        {
            "action""APPROVED",
            "entattkey""45411",
            "comments"""
        }
    ],
    "entitlements2": [
        {
           "action""APPROVED",
           "entattkey""45411",
           "ent2attkey""45412",
            "comments""childComment_9/3/2023_11:35"
        },
       {
          "action":"APPROVED",
          "entattkey":"45411",
          "ent2attkey":"45413",
          "comments":"childComment"
        }
    ]
}
Response:
 
{
 
    "msg""An unexpected error occured",
    "entitlements": [
        {
            "msg""entattkey 45411 update successfully",
            "action""APPROVED",
            "entattkey""45411",
            "comments"""
        }
    ],
    "errorCode""1"
}
 
And the same API is returning success response when we are sending bulkUpdate='Y' but not updating the comment.
Request:
 
{
 
    "campaignid""1078",
    "certkey""2544",
    "verifier""prdusr24",
    "bulkUpdate":"Y",
    "entitlements": [
        {
            "action""APPROVED",
            "entattkey""45411",
            "comments"""
        }
    ],
    "entitlements2": [
        {
           "action""Rejected",
           "entattkey""45411",
           "ent2attkey""45412",
            "comments""childComment_9/3/2023_11:35"
        },
       {
          "action":"Rejected",
          "entattkey":"45411",
          "ent2attkey":"45413",
          "comments":"childComment"
        }
    ]
}
 
Response:
 
{
 
    "msg""Success ",
    "entitlements": [
        {
            "msg""entattkey 45411 update successfully",
            "action""APPROVED",
            "entattkey""45411",
            "comments"""
        }
    ],
    "errorCode""0",
    "entitlements2": [
        {
            "msg""entattkey 45411 update successfully",
            "action""Rejected",
            "entattkey""45411",
            "comments""childComment_9/3/2023_11:35",
            "ent2attkey""45412"
        },
        {
            "msg""entattkey 45411 update successfully",
            "action""Rejected",
            "entattkey""45411",
            "comments""childComment",
            "ent2attkey""45413"
        }
    ]
}
Please find below screenshot:
 
 
randhir_kumar_1-1678438867430.png

 

Kindly check and let us know.
 
Thanks,
Randhir Kumar.
4 REPLIES 4

timchengappa
Saviynt Employee
Saviynt Employee

Hello @randhir_kumar 

Please try the below sample payload by changing keys etc. I am able to make the API call successfully.

{
"campaignid":"3",
"certkey":"4",
"verifier":"F4BLANN0",
"bulkUpdate":"Y",
"bulkValidations": "N",
"approveComment":"approveComment",
"rejectComment":"rejectComment",
"doesNotBelongToMeComment":"doesNotBelongToMeComment",
"entitlements":[
{
"action":"APPROVED",
"entattkey":"49121",
"comments":"test3"
},
{
"action":"REJECTED",
"entattkey":"49122",
"comments":"test3"
},
{
"action":"DECOMMISSIONED",
"entattkey":"49123",
"comments":"test3"
},
{
"action":"DOESNOTBELONGTOME",
"entattkey":"49124",
"comments":"test3"
}
],
"accounts":[
{
"accattkey":"6916",
"entattkey":"49126",
"action":"APPROVED",
"comments":"test2"
},
{
"accattkey":"6917",
"entattkey":"49126",
"action":"REJECTED",
"comments":"test2"
},
{
"accattkey":"6917",
"entattkey":"49126",
"action":"REJECTED",
"comments":"test2"
}
],
"entitlements2":[
{
"action":"APPROVED",
"entattkey":"49113",
"ent2attkey":"49248",
"comments":"test3"
},
{
"action":"REJECTED",
"entattkey":"49113",
"ent2attkey":"49249",
"comments":"test3"
},
{
"action":"REJECTED",
"entattkey":"49113",
"ent2attkey":"49248",
"comments":"test3"
},
{
"action":"REJECTED",
"entattkey":"49113",
"ent2attkey":"49248",
"comments":"test3"
},
{
"action":"REJECTED",
"entattkey":"49113",
"ent2attkey":"49248",
"comments":"test3"
}
]
}


randhir_kumar
New Contributor III
New Contributor III

Hi,

I tried the same and used below payload which is returning success message with "0" errorCode.

But action is not performed the Saviynt UI.

Please find below Saviynt UI screenshot and used payload:

randhir_kumar_0-1678957529599.png

 

Request:

========

{
    "campaignid""1078",
    "certkey""2544",
    "verifier""prdusr24",
    "bulkUpdate":"Y",
   "approveComment":"approve16_3_2023",
   "bulkValidations""N",
   "rejectComment":"reject",
   "doesNotBelongToMeComment":"doesNotBelongToMeComment",
    "entitlements": [
        {
            "action""APPROVED",
            "entattkey""45411",
            "comments""liComment"
        }
    ],
    "accounts":[
        {
            "action":"APPROVED",
            "entattkey":"45411",
            "accattkey":"55645",
            "comments":"accComment"
        }
    ],
    "entitlements2": [
        {
           "action""APPROVED",
           "entattkey""45411",
           "ent2attkey""45412",
            "comments""childComment1"
        },
       {
          "action":"APPROVED",
          "entattkey":"45411",
          "ent2attkey":"45413",
          "comments":"childComment2"
        }
    ]
}
Response:
{
    "msg""Success",
    "errorCode""0"
}
 
Thanks.

timchengappa
Saviynt Employee
Saviynt Employee

Hello @randhir_kumar 

While I am sure that the API payload and its syntax that I  supplied earlier are correct, your case may require further troubleshooting in terms of verifying the cert user, account, and entitlement keys looking at logs etc.

I recommend opening a support ticket(https://saviynt.freshdesk.com) for the same. 

randhir_kumar
New Contributor III
New Contributor III

Hi,

We have already raised an SR.

https://saviynt.freshdesk.com/support/tickets/1607510

Thanks.