Hi Suraj Rana,
So what you need, is a Soap/Rest Call to Service now and a post Execution interpretation of the response, like any integration.
Based on what your logic decides you can go one path (create a new a new incidente) or another, do nothing.
I don't know how service now works and how you can do this call, but if you can do it using postman/Soap UI, you probably can reproduce it using Pam's operator.
After that, is a matter of using the right logis, as you said.
So in a more visual way:
A simple example is like this
you have a call using a webservice (or db), That would verify if you need to create a incident
Make sure you've marked all the options that you need from Call Results
Create custom ports for each kind of possible exit
In this example, there are two options
true and not true
The way we usually work with webservices using PAM is: You get the right envelope on soap-ui/postman and then use it on PAM. Make the same call, without post-Execution parameters, and see what output the operator produce
Right-click the info that you need on Dataset and get the full path of the parameter
hope it helps