When writing webhooks to integrate BuddyCRM with an external system, there will sometimes be a need to utilise square brackets [ or ] as part of the required code.
BuddyCRM already utilises square brackets to accommodate Merge Tags to pull information in dynamically from the BuddyCRM database. Because square brackets already have a purpose, we need to encode square brackets slightly differently in our Webhook Template so that they will function properly when used.
Cleverly, the BuddyCRM developers have added the following delimiters for [ ] tags:
[ – #*#
] – *#*
Here is a working example, if my code should be:
“test_documents”: [
{
“document_title”: “Welcome pack for [FIRSTNAME]”
]
I would replace this with the following in the BuddyCRM Webhook Template:
“test_documents”: #*#
{
“document_title”: Welcome pack for [FIRSTNAME]”
*#*
For hints, tips or further assistance with webhooks, please contact the BuddyCRM customer success team on support@buddycrm.com.