Learn about the new Oracle AI Agent Studio for Fusion Applications: Watch Now
Progress with Redwood: Redwood Resources for Oracle Cloud HCM - Go Here
Progress with Redwood: Redwood Resources for Oracle Cloud HCM - Go Here
Unable to call Invoke User Job Roles Assignment HCM API Through Groovy Scripts
Summary:
Unable to call Invoke User Job Roles Assignment HCM API Through Groovy Scripts (/hcmRestApi/scim/Roles)
Content (please ensure you mask any confidential information):
- The issue is with the Payload Format the Groovy is accepting
- POST MAN Payload
{
"members": [
{
"value": "0271CF31B75046E0E0633BA9530A542D",
"operation": "ADD"
}
]
}
- Groovy Payload
def members =
[
[
value :"0271CF31B75046E0E0633BA9530A542D",
operation :"ADD",
]
]
//println(members)
def CX_Roles =adf.webServices.JobRole.PATCH("5DB11B1A645B47F4B4FDA8AB7110A7D3", members)
System is throwing below when we try to invoke the Groovy Script.
Error Message:
Exception in expression "UserSecurity_c" object function test() : oracle.binding.expr.ServiceInvocationException Unexpected exception caught: oracle.adf.model.connection.rest.exception.RestConnectionException, msg=JBO-57001: Invocation of service URL used in connection failed with status code 500 Internal Server Error.
Tagged:
0