# How to call Web API and set result as Data for use in process steps

**URL:** <https://discuss.workflowgen.com/t/how-to-call-web-api-and-set-result-as-data-for-use-in-process-steps/1265>\
**Category:** Web API\
**Created:** [January 15, 2019, 7:54pm UTC](https://discuss.workflowgen.com/t/how-to-call-web-api-and-set-result-as-data-for-use-in-process-steps/1265 "2019-01-15T19:54:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason.smith](https://avatars.discourse-cdn.com/v4/letter/j/cdc98d/32.png) [@jason.smith](https://discuss.workflowgen.com/u/jason.smith)\
**Post date:** [January 15, 2019, 7:54pm UTC](https://discuss.workflowgen.com/t/how-to-call-web-api-and-set-result-as-data-for-use-in-process-steps/1265/1 "2019-01-15T19:54:06Z")

</div>

I am trying to call a custom built Web API as an Application from inside my workflow. It is failing in two areas:

1. I am unable to pass a parameter to my Web API

2. I am unable to set the return value to data in my workflow

Let’s start with #2 above and come back to #1 later:  
My custom API returns a payload that looks like this:  
{“emailaddress”:“first.last@company.com”}

My Application is set up like this:  
URL: [http://server/getemail/api/users/getemail/](http://server/getemail/api/users/getemail/)  
Type: Web Procedure  
Content Type: application/json  
Conext Format: JSON  
Parameters: IN: ID; OUT: EMAILADDRESS;

I created a process step in my workflow that calls the Application as defined above and I tried to configure the process step to take the EMAILADDRESS parameter from the API and set it to a Data parameter called MANAGEREMAIL.

The issue right now is that the MANAGEREMAIL data never gets filled.  
The process step that calls the API succeeds (no errors) but the data does not get filled.

I am not sure where the break is?  
If we can work through this then we can try to work through the first issue of not being able to SEND a parameter to my Web API.

 ![Application](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/3d5750b299b2a9f5f6ca74e1530be530a04ef3cc.jpeg)  
 ![Workflow](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/916fb2934d5e17d6fbc3b4893224d7a14489de9c.jpeg)

Jason

---

<div class="post-metadata">

**Author:** ![eddy.daouk](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/eddy.daouk/32/672_2.png) [@eddy.daouk](https://discuss.workflowgen.com/u/eddy.daouk)\
**Post date:** [January 16, 2019, 3:02pm UTC](https://discuss.workflowgen.com/t/how-to-call-web-api-and-set-result-as-data-for-use-in-process-steps/1265/2 "2019-01-16T15:02:40Z")

</div>

Hi @jason.smith,

Please open a ticket in our Helpdesk site so we can investigate this issue.

Regards,  
Eddy.

---

<div class="post-metadata">

**Author:** ![jason.smith](https://avatars.discourse-cdn.com/v4/letter/j/cdc98d/32.png) [@jason.smith](https://discuss.workflowgen.com/u/jason.smith)\
**Post date:** [January 16, 2019, 3:36pm UTC](https://discuss.workflowgen.com/t/how-to-call-web-api-and-set-result-as-data-for-use-in-process-steps/1265/3 "2019-01-16T15:36:02Z")

</div>

@eddy.daouk How do I access the help desk site? What is the URL?
