I have a requirement where i need to send the email notification to certifiers once certification start. I also want to send this email notification in a days period like if a cert deadline is within 9 days i need to send 2,5,7 days respectively.
I have created the workflow but not able to get the certifier email in Send Email actions. Is there any way to add connector rule into workflow to get the certifier email. Any solutions could be helpful.
Thanks in advance!!!
:id in GET request URL for the reviewers list indicates a path parameter, and not query parameter. As there is no option to add path parameter to the URL for httpRequest this is what I did:
Add 4 Define Variable Operations to the workflow where first one holds https://tenantname.api.identitynow.com/v3/certifications/ text, second one variable $.trigger.campaign.id, third /reviewers text. And 4th one concatenates these 3 variables
Use the variable from 4th Define Variable as the URL in httpRequest.
Check the URL string in the Step Input for httpRequest in Workflow tester. It should look like https://tenantname.api.identitynow.com/v3/certifications/12b66...YOURCAMPAIGNID/reviewers
Looking at some other posts this is what I have found:
We need to create 2 httpRequests in this case, one for authentication and second for actual API request
In the first call you send a POST request to ...../oauth/token URL with Form request body with these 3 fields grant_type: client_credentials client_id: __________________ client_secret:_______________
Then use the access_token in the body of the response from above in the header of next httpRequest Authorization : Bearer {{$.hTTPRequest.body.access_token}}
Leave Authentication empty for both httpRequests
Here is the link where I found this
Also make sure you are using the right id field from Campaign Activated in the URL. There are 2 ids and it might be confusing when you pick the variable from inside Define Variable
Right one
URL1 (text): https://tenantname.api.identitynow.com/v3/certifications/
URL2 (attribute): $.trigger.campaign.id
URL3 (text): /reviewers
Building Final API URL
defineVariable3 in the Request URL refers to Final API URL
Header will be: Authorization : Bearer {{$.hTTPRequest.body.access_token}}
Here hTTPRequest refers to Authentication httpRequest
Also note that you can use the following for Get Reviewers URL https://tenant.api.identitynow-demo.com/beta/certifications/{{$.trigger.campaign.id}}/reviewers
And eliminate DefineVariable operations
Also in Get identity what query we need to use because when I choose variable selector for Get Reviewers I can only see the body, headers and statusCode.