Hello,
I am trying to put a trigger on the "Reservation Entry" table (337) in order to keep track of sales lines and serials within an external dashboard.
On insert, modify, and delete I am trying to send a http request with the serial and sales line info from the reservation entry. My issue is that when i go to test wether the trigger fires nothing happens.
my test is as follows:
1. Create Sales Order
2. Add item to sales line
3. Add serial within Item Tracking Lines
4. check logs to see if trigger successfully sent data.
Below is a screenshot of what i am trying to test.

As of now i am not sending anything specific, just the record systemId to verify the request works.
I am confident my payload/request works fine since i copied it from previous working triggers. The only difference is the payload data which is passed into the function responsible for making the request. I have attached my code below.
tableextension 50174 "Reservation Entry Extension" extends 337
{
fields
{
// TODO
}
trigger OnAfterInsert()
begin
// I beleive this trigger is not firing for some reason
HandleTrigger(triggerEnum::insert);
end;
trigger OnAfterModify()
begin
// I beleive this trigger is not firing for some reason
HandleTrigger(triggerEnum::modify);
end;
trigger OnAfterDelete()
begin
// I beleive this trigger is not firing for some reason
HandleTrigger(triggerEnum::delete);
end;
local procedure HandleTrigger(triggerName: Enum TriggerEnum)
var
sl: Record "Sales Line";
data: JsonObject;
begin
// These fields should be available at this point
data.Add('id', JsonTools.sanatizeId(rec.SystemId));
data.Add('serial', rec."Serial No.");
// Function responsible for making request, this is used in other triggers and
// works perfectly fine, I doubt this is the issue
buildPayload.HandleTrigger(env.IsProduction(), rec.CurrentCompany(), 'Sales Line', data, triggerName)
end;
var
makeRequest: Codeunit MakeRequest;
vcuTI: Codeunit "Tenant Information";
buildPayload: Codeunit "Build Payload Codeunit";
env: Codeunit "Environment Information";
JsonTools: Codeunit "Json Tools";
triggerEnum: Enum TriggerEnum;
}