Logging incoming phone call within workflow custom function

Logging incoming phone call within workflow custom function

Hi, I try to log an incoming phone call to an existing contact. The contact id and the call number are present in variables, but converting it to a map and trying to push it via "createRecord" does not work.

Does anyone have a code snippet to push a new call log entry to the crm, related to an existing contact id?

I am calling this from inside a custom function inside a workflow.

Thanks a lot!