Approval Workflow Trigger Issue

Approval Workflow Trigger Issue

Hello,

I am running a function via a scheduled workflow every month that creates an entry in a form.

I have added an approval process to a form but the approval process only runs when I manually enter data into the form and not when a function adds the data using add record deluge script.

I am also unable to trigger the approval process from the function using deluge script after I have created the record because the approval workflows are not accessible like the functions are.

I can send an email from the function confirming that the entry has been made and link to the pending approvals page but there is not pending approval to approve because the process hasn't started.

This seems like a missed opportunity, are there any workarounds?

Thanks,

Hamish