Workflow Manage Access - Add Access issue - request failed: 400 - 400 Bad Request: (type: HTTP Response Returned a Client Error, retryable: false): request failed: 400 - 400 Bad Request

Hello,
I am trying to assign an entitlement through a workflow and i keep getting this error: request failed: 400 - 400 Bad Request: (type: HTTP Response Returned a Client Error, retryable: false): request failed: 400 - 400 Bad Request.

I have the following steps in my workflow:
Get access by search query: here I specified the id of the entitlement by search query.
The next step is Manage Access - Add access. In the Access to Manage, I added this: $.getAccess.accessItems from previous step Get Access.

I tested the workflow and in the output of Get Access i retrieve the correct data (only one entitlement).

But on the next step, Mange Access - add access, it is failing with this error: request failed: 400 - 400 Bad Request: (type: HTTP Response Returned a Client Error, retryable: false): request failed: 400 - 400 Bad Request

Any ideas why this is failing?
Would appreciate any suggestions, thanks in advance.

Hi Mihaela,
Did you make that particular entitlement requestable?

Make sure the added entitlement is marked as requestable, if not you will get an error repeatedly.

HTH.

1 Like

This will help, making the item requestable and understanding approval is required here

Hi,
Thanks all for the quick replies.
The entitlement is requestable, I just checked through API:


I also checked Admin>Global>System Settings and Enable Entitlement Requests is checked, with no approval required…

There may be other possibility like that particular source is not healthy, could u check once

Hi, the source is healthy.

Would you be able to post screenshot of get access search query here?

Hi @mihaela_andrei

Welcome to the Developer Community :tada:

Please check the Access to Manage Step once , ensure that it is ‘Choose Variable’ and not Enter Value:

Please Post the Workflow Execution Report for further understaning of this error.

Thanks

Hello Mihaela,

Is the issue resolved ? I am also facing same issue.

Hi, sorry for the late reply.
No, it did not work from workflow.
I simply created an automatic role, and I am assigning the license through role, for specific criteria.
I solved the issue with this workaround and there was no need to assign from workflow anymore.

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