Calling API (GET request) from workflow custom code action
SOLVE
I was able to fetch a contact by adding his email as a property in the deal, and then calling this property from the enrolled deal using my custom code. This way i didn't require any sort of API to fetch the contact email. Stored the email in a variable and will use this variable as a parameter in the enroll API.
My next step will be to figure out how to enroll this email that i fetched in a new workflow using the enroll API.
Calling API (GET request) from workflow custom code action
SOLVE
I was able to fetch a contact by adding his email as a property in the deal, and then calling this property from the enrolled deal using my custom code. This way i didn't require any sort of API to fetch the contact email. Stored the email in a variable and will use this variable as a parameter in the enroll API.
My next step will be to figure out how to enroll this email that i fetched in a new workflow using the enroll API.