# Incoming Webhooks how to pass datetime?

**URL:** <https://discuss.workflowgen.com/t/incoming-webhooks-how-to-pass-datetime/702>\
**Category:** Integration\
**Created:** [February 13, 2017, 7:52pm UTC](https://discuss.workflowgen.com/t/incoming-webhooks-how-to-pass-datetime/702 "2017-02-13T19:52:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cpnamdevelop](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/cpnamdevelop/32/440_2.png) [@cpnamdevelop](https://discuss.workflowgen.com/u/cpnamdevelop)\
**Post date:** [February 13, 2017, 7:52pm UTC](https://discuss.workflowgen.com/t/incoming-webhooks-how-to-pass-datetime/702/1 "2017-02-13T19:52:39Z")

</div>

Hi,  
I give a try to the new Webhook API introduced by WFG 7.0

To do so, I build a simple workflow with 2 actions and 2 IN datas. One in plain text, the other one as DateTime.

When I use the sample JSON code, it works fine for the text data, but the dateTime data is not populated.

Here is the Json I used:

```
{
	"operation": "createRequest",
	"args": {
	"input": {
		"processName": "ESSAI_WEBHOOKS",
		"processVersion": 1,
		"inTest": true,
		"parameters": [
			{
				"name": "DEMANDE_SUJET",
				"direction": "IN",
				"type": "TEXT",
				"textValue": "Mon sujet de test"
			},
			{
				"name": "DEMANDE_DATE",
				"direction": "IN",
				"type": "DATETIME",
				"textValue": "2017-02-13T15:00:00Z"
			}			
		]
		}
	}
}

```

So, why is my date vale is not populated into my workflow ??? Do I new to use another key name than “textValue” ? If yes, what keyname ? and where can I find all the available key/pairs to use in the JSON objects ?

---

<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:** [February 14, 2017, 10:19pm UTC](https://discuss.workflowgen.com/t/incoming-webhooks-how-to-pass-datetime/702/2 "2017-02-14T22:19:14Z")

</div>

Hi,

The dateTime data requires the attribute “DateTimeValue” instead of “TextValue”.  
An example is shown in this document:  
[https://advantys.gitbooks.io/workflowgen-integration-guide/content/workflow-applications.html](https://advantys.gitbooks.io/workflowgen-integration-guide/content/workflow-applications.html)

Hope this helps,  
Eddy.

---

<div class="post-metadata">

**Author:** ![cpnamdevelop](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/cpnamdevelop/32/440_2.png) [@cpnamdevelop](https://discuss.workflowgen.com/u/cpnamdevelop)\
**Post date:** [February 19, 2017, 11:55am UTC](https://discuss.workflowgen.com/t/incoming-webhooks-how-to-pass-datetime/702/3 "2017-02-19T11:55:45Z")

</div>

Thanks. Excactly what I need
