Stream note API post

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • heligonaut
    Junior Member
    • Feb 2021
    • 19

    Stream note API post

    Hello, I would like to ask if its possible to define "createdById" in API stream note post manualy?

    The thing is that every stream note created through API has API user listed in "createdById" and "createdByName"

    We tried this payload attributes but 'createdById' => $espoUserId doesnt work. $espoUserId has correct data (ticket user ID)

    $stream_data = array(
    'type' => 'Post',
    'parentId' => $ticket_id,
    'parentType' => 'Case',
    'post' => $streamComment,
    'createdById' => $espoUserId
    );

    Thanks
  • yuri
    Member
    • Mar 2014
    • 8627

    #2
    Not possible by design. You need to create your custom API action.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...