I am facing issue with calling plan attributes.
$plan.nativeIdentity$ works fine.
But lets say I have to do PUT call on remove entitlement and I have to update some attribute which are there in account shema but it is not getting called and will get 400 bad request. If I hard code the values then it works fine. I believe plan is not able to fetch those attributes, verified from logs as well.
Which operation in the WebService connector are you using to do this call?
By default the provisioning plan only includes the attributes that need an update/change. So if you do an entitlement remove operation email, userName, etc will not be included in the plan.
@Amrit1897 Ok my bad, you can only get the requested attribute from the plan.
For e.g. in this case you are trying to remove the entitlement, so you will only get which role is getting removed and the nativeIdentity in the plan not others.
For Create Operation you are getting all the required values from Create Profile and they are there in the provisioning plan.
Since you are not passing all the value it is giving you the 400 bad request.
You can use a beforeOperation rule to set your request body with required attributes.
Parent endPoint - First get the account details and map those in response mapping
Child endPoint - Get the values from Parent response and pass it to body.
@Amrit1897 This is up to you whichever way suitable your requirement.
maybe, in a web services before operation rule, you could grab the required attribute value(s) and insert them into the plan to make them available with $plan. notation.
@patrickboston or anyone, I have this requirement for other use case, where I have two disable operation first operation fetches id from a endpoint, fetched id is used in 2nd disable operation which calls different endpoint.
Basically, my ask is can we call the 2nd disable operation only if ID is found from first operation? Is it possible without before operation rule?
Currently if id is not found from first operation then it gives Disable Account Failure which I don’t want.