How do I get my workflow to launch a certification campaign for the new manager?

Hello,

I have been working on building a certification campaign workflow, but instead of sending the certification campaign to the new manager it sends it to the old one any advice?

Hi @Dw2456,

To test, please create an HTTP Request Action block with the following Beta API call for an Identity Refresh (with the Identity ID in the request body).

The HTTP Request block should be placed before the Get Identity Action block.

If it does not work, please share more details on your workflow for a clear understanding of the requirement. Thank you.

It looks like your Get Identity action is fetching you details of the old manager. Please modify your Get Identity action to reference the new manager instead of old.

Is there a specific JSON Path I could use to achieve this?

Yes, it depends on your workflow input. I am unable to see the previous steps/trigger in your workflow so i cannot comment on exact json path that you can use.

If you are using Identity Attributes Changed trigger then $.trigger.changes[?(@.attribute == ‘manager’)].newValue.id will give you manager Id. You can use that as input to your Certification action.

1 Like

Did you try changing reviewer identity to this value?

1 Like

I can try in both the trigger and action?

1 Like

Like the the identities trigger and campaign review ID? or just one

1 Like

When I have tried this it messes up it doesn’t catch the new manager it send its to all managers

1 Like

Hi Dawn,

Can you please specify your use case for the workflow Or post your workflow here ? Without having a look at your steps/input specified , it’s hard to assist further.

1 Like

Here was my original workflow that works just grabs the old manager when I put newValue.id it grabs all the managers

1 Like

Here is the one I am trying to complete adding the Http request, but the HTTP request keep failing

It is the same workflow just with the HTTP request I am not sure how to figure that properly,

Token URL
https://{tenant}.api.identitynow.com/oauth/token

https://{tenant}.api.identitynow.com/beta/identities/process

{“id”:“”,“secret”:“”,“grantTypes”:[“CLIENT_CREDENTIALS”,“AUTHORIZATION_CODE”]}

1 Like

In your old workflow, in this step, did you try modifying “Reviewer Identity” to JSON value : $.trigger.changes[?(@.attribute == ‘manager’)].newValue.id

1 Like

Yes, and it grabs all the managers not just an individual one

1 Like

If your trigger include multiple identities getting changed at same time, it will create a certification for each new manager respectivly. Are you looking to assign all certifications to a single manager?

1 Like

We are trying to change the manager for one person, and assign one certification campaign to the new ‘single’ manager.

In that case, this should pick up only one manager not many. Can you share your workflow input/trigger details?

I shared all of it above

It isn’t picking it up I tried it multiple times, and shared you the workflow and all the details above