the card code was different, both content and url, in debuging made 2nd card the same.
in the php script...
// Retrieve the JSON payload from the POST request
$input = file_get_contents('php://input');
// Decode the JSON payload
$data = json_decode($input, true);
2nd time $input is null.
execute cards...
// Define the email content
/// Define the email content
const aContent = {
Authorization: env.flyofficeKey,
chatAction: 'bookingrequest',
for: 'peter@xxxxxx.co.nz',
date: '2024-05-26'
}
// Send the email using Axios
const webhookUrl = 'http://xxxx.co.nz/chatbotxx/Chatbot.php'
const response = await axios.post(webhookUrl, aContent)
const result = response.data
// Save the result to a variable or store it in the workflow or turn variables as needed
workflow.webhookResult = result