function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Charlie NymanCharlie Nyman 

Create a note and associate it with a call

I'm working on building a call center using Open CTI. Using sforce.interaction.saveLog I've figured out how to create an account and a task, but I haven't been able to create a note associated with a call. Could someone help me figure that out?
JeffreyStevensJeffreyStevens
Creating Notes - are the easy part - you've already done the hard part.

There is a Standard object call - Note.  So, just create a Note record, and set the ParentId = to the ID of the Account (or the Call record). The field Body has the text of the note.
Charlie NymanCharlie Nyman
I'm sure there's something basic I'm just not aware of, but this isn't working. I'm using this:

sforce.interaction.saveLog('Note','ParentId=0018000001RHqlr&Body=Heres what I have to say about that', saveLogCallback);

The parent is a test Account I created. I run this command but nothing happens, no note appears in the test account I made.