Created
October 20, 2025 09:37
-
-
Save alexvdvalk/5641116bb7acccb467f3c1cb06b72349 to your computer and use it in GitHub Desktop.
Make external API request from a Bullhorn page interaction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const url = | |
| "https://meetup.trycloudflare.com"; // update with your endpoint | |
| const a = async()=> { // Javascript promise | |
| const response = await fetch (url, { | |
| method: 'POST', | |
| body: JSON.stringify(form.data) | |
| }) | |
| const data = await response.json(); | |
| console.log('data', data); | |
| // the form.data json object is commited to the db | |
| } | |
| // Add checks for entity types | |
| if (API.currentEntity === "Task") { | |
| return a(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment