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
Norm Sherman SFNorm Sherman SF 

Inserting FeedItem with ExternalId

Is it possible to insert a feedItem and set the ParentId as a lookup to an object with external id.

For example, outside of Chatter, I can insert a record like this:
'CustomRelationship__r':{'CustomKey__c':'aaaaaa'}

How can I do the same with ParentId?

Cheers
Ankit Gupta@ DeveloperAnkit Gupta@ Developer
Hi,

In feeditem you can set record any record id as parentid.

Ankit gupta

Norm Sherman SFNorm Sherman SF
Right, but I do not want to set FeedItem by record id but rather through an external id of a record.