Workflow to trigger function

Workflow to trigger function

Hi,

I setup a workflow to trigger a function when record has been created.
If I create record manually.workflow work correctly.
But When I create record by functions.workflow can't  trigger function.
Is it true or I miss something?