Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/05/2023 01:27 PM - last edited on 09/05/2023 02:13 PM by Dave
Hi,
We want to explicitly define that if a particular message is coming in the API response, the task should go to Completed tasks with status as success.
The API response is as below:
{"call":{"headers":{"Transfer-Encoding":"chunked","X-Content-Type-Options":"nosniff","X-ORACLE-DMS-ECID":"0061A9BtahGAXNR_uXCCyX0007Zj0003FZ","Connection":"keep-alive","X-ORACLE-DMS-RID":"0:5","Date":"Tue, 05 Sep 2023 20:16:06 GMT","AKGRN":"0.b71fc917.1693944964.3a86d706","Referrer-Policy":"origin","Strict-Transport-Security":"max-age=31536000; includeSubDomains","Cache-Control":"no-cache, no-store, must-revalidate","Vary":"Accept-Encoding","X-XSS-Protection":"1; mode=block","Link":"<https://xxxxxxxx.oraclecloud.com:443/fscmRestApi/resources/xx.xx.xx.xx/dataSecurities/30000049281276...>;rel=\"self\";kind=\"item\";name=\"dataSecurities\"","Content-Language":"en","Content-Type":"application/vnd.oracle.adf.resourceitem+json","Location":"https://xxxxxxxx6.oraclecloud.com:443/fscmRestApi/resources/xx.xx.xx.xx/dataSecurities/3000004928127...","REST-Framework-Version":"1"},"message":{"responseMessage":"A record with this combination of values already exists."},"statusCode":400,"description":null,"status":"Failed"}}
Can we achieve this?.
I tried below but none of them worked:
1).
09/08/2023 10:27 AM
Can you try with the below and see if it works.
"successResponse": ["A record with this combination of values already exists."],
"successResponsePath": "message.responseMessage"
10/08/2023 10:33 PM
I tried with the above approach. The task is still remaining in pending tasks. It is not going to Completed Tasks even if responseMessage is: "A record with this combination of values already exists."
This is important for us to achieve as otherwise we won't be able to go live with the application.
Please guide as to how we can achieve this.
Thanks,
Atul Singh
10/10/2023 10:37 AM
Can you share the complete JSON and the log for 1 task.
Ensure to update ConfigJSON param in the REST connection with value {"showLogs":true} before running the provisioning job.
11/06/2023 01:57 PM - edited 11/06/2023 01:59 PM
We are still stuck with this issue.
I am attaching the logs after setting config showLogs as true. Also the postman response which we get in case of which we want to consider it as a Success Response is as below:
Thanks.
11/13/2023 12:56 PM
Can you try with below. If it does not work, share the complete JSON.
"successResponse": ["A record with this combination of values already exists."],
"successResponsePath": "",