Custom Fields not accessible on Sales Order Line Items - Custom Function

Custom Fields not accessible on Sales Order Line Items - Custom Function

Hey there,

I am having an issue where I am unable to set the values of my custom fields that I have on the Sales Order Line Items object.

While testing, I noticed that my custom fields aren't even returned after a create.

test = zoho.crm.getRecordById("Sales_Orders", create.get("id").toLong());

I get this back

{"Owner":{"name":"Testing Test","id":"5126111000000344001","email":"test@test.com"},"Program_Start_Date":"2021-12-23","Description":null,"$currency_symbol":"$","$review_process":{"approve":false,"reject":false,"resubmit":false},"$canvas_id":null,"$review":null,"$state":"save","$converted":false,"$process_flow":false,"Deal_Name":{"name":"John Smith","id":"5126111000000345884"},"Account_Name":{"name":"John Smith","id":"5126111000000641001"},"id":"5126111000000669001","$approved":true,"$approval":{"delegate":false,"approve":false,"reject":false,"resubmit":false},"test":null,"$editable":true,"Product_Details":[{"product":{"Product_Code":null,"name":"123 Main St","id":"5126111000000519008"},"quantity":1,"Discount":0,"total_after_discount":350000,"net_total":350000,"book":null,"Tax":0,"list_price":350000,"unit_price":350000,"quantity_in_stock":0,"total":350000,"id":"5126111000000669003","product_description":"","line_tax":[]}],"Subject":"Deal with John Smith for 123 Main St,","$orchestration":false,"Program_End_Date":"2024-12-23","$in_merge":false,"Term_years":3,"$line_tax":[],"Tag":[],"$approval_state":"approved"}

The product Details don't include my 4 custom fields. All of which are visible on the page layout.

Any reason for this?