Expand my Community achievements bar.

Latest Community Ideas Review is Out: Discover What’s New and What to Expect!

Webhook n00b question: parameterValue format?

Avatar

Level 5

So, I'm playing around using the HTTP module to create webhooks which do things I can't do by using the Watch Events module. 


I was able to make a filter with an OR statement, which is wonderful. Ultimately though, I want to have a webhook where the newState of a custom form field is different than oldState thereof.

 

I used this, got a 201, but it doesn't seem to work:

 

{
"objCode": "DOCU",
"eventType": "UPDATE",
"url": "https://hook.app.workfrontfusion.com/liw3gfiixg6aepx3xr2371ugqkavf48l",
"filters": [
{
"fieldName": "DE:What version of legal and compliance review is this?",
"fieldValue": "",
"comparison": "changed"
}
]
}

 

Please tell me there's something stupid I'm missing here. There has to be.

2 Replies

Avatar

Level 5

So, I adjusted my code and now I have a webhook that works...sorta. The problem is that it triggers whenever a document is updated at all--not when this one field is altered. Here's the code.

 

{
"objCode": "DOCU",
"eventType": "UPDATE",
"url": "https://hook.app.workfrontfusion.com/liw3gfiixg6aepx3xr2371ugqkavf48l",
"filters":
[
{
"fieldName": "parameterValues",
"fieldValue": "DE:What version of legal and compliance review is this?",
"comparison": "changed"
}
]
}

 

I'm guessing it's running when a document is changed and if this one custom form field is on said document?