provisionPlan.toXml() not able save using API.. web service before operation rule

Hello,

I wanted to provisiongPlan.toXml() to view the plan attributes in web service before operation rule. But I am getting the below error while saving using Rest API tool. Please help me how to print.

log.error(provisioningPlan.toXml());

 "state": "ERROR",
    "details": [
        {
            "line": 51,
            "column": 27,
            "message": "Remove reference to .toXml("
        }
    ]
}

My Requirement when user request for the entitlment which is attached role&accessprofile
I need to add the entitlement name to the Add Entitlement Operation.

with what value entitlement name to be fetched and added to Add Entitlement Operation.

Hi @kolipakularaviturnkey,

Just for the workaround try “plan.toMap()”.

Thanks

I’m not sure I completely understand here?
You have a user which you assigned a role or access profile (which should have an entitlement under there). Do you want to do a specific action with the entitlement or the user?

Hi Ravi,

toXml() method is not allowed in cloud rules or connector rules. Please check below doc link and rule code restrictions section

Thanks Ashutosh it worked for me

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.