Share all details related to your problem, including any error messages you may have received.
Is it possible to trigger create account operation web service automatically before an add entitlement,
For example:
I have a create account operation follows with an add entitlement
when I add an entitlement to that identity, if it doesn’t have an account in that application it creates the account then adds the entitlement
NB: The account and entitlement are created with two different POST operation
There is two different POST calls /contexturl1 & /contexturl2 ,
when adding the entitlement, if there is no account it create it then add entitlement in other cas it just add the entitlement
Your question isn’t clear. Can you elaborate it more?
From the below statement of yours, create account operation is always automatically triggered before adding entitlement.
“Is it possible to trigger create account operation web service automatically before an add entitlement”
If your requirement is to not call “add entitlement” API again when the request is create type, then as Kamil mentioned, you can declare the flag createAccountWithEntReq as true, which tells the connector that when a create request is initiated “Create Account” Operation also handles the add entitlement.
If you have two POST url’s say, /contexturl1 for Create Account and /contexturl2 for Add Entitlement after creation, you can declare two “Create Account” type operations. First one with the actual Creation API and then followed by Entitlement addition.
In ideal case when you are requesting entitlement then it should invoke your create account and then add entitlement operation.
If you want to place request as per your request, then you can use before operation rule to place the validation request and then perform the actual operation.