I am trying to add the result of an third-party API lookup to the Admin Notification email. I've tried a few different ways and none are working. For these I depended upon hooking into 'gform_entry_created' so that the entry exists already when I'm trying to add my data.
- Add a custom entry meta field to the entry, then display that meta field in the notification email
- Add a hidden field (named: "Reservation Guid") and update its $entry[field_id] value to the value of my third-party API result
With the custom entry meta method, it doesn't seem like my meta is ever attached to the entry, it doesn't exist in the email.
With the hidden field method, it doesn't seem like setting the value of $entry['23'] to any value actually changes the value on the entry object.
Here is my code snippet:
using GF version 184.108.40.206.2