Menu

createFeedItem

Posts a file into the specified record's Chatter feed. Creates a FeedItem record into the chosen record's feed along with a ContentVersion record for the document and a FeedAttachment record linking those two together.

Note that this is a legacy command from a time when file data was included in the FeedItem records instead of the current model using FeedAttachment records. To remain functional with the current model, this command is now basically a combination of postFeedItem, createFeedAttachment and createContentVersion commands. Please consider using those commands instead to have more options and greater control over post content, amount of attachments and the file upload process.

Attributes

var

Required
Value type
EL-evaluated
No String No
If defined, a variable with this name is created to hold the ID of the created FeedItem record. 
contentVar


Required
Value type
EL-evaluated
No String Yes
If defined, a variable with this name is created to hold the ID of the created ContentDocument record.
doc

Required
Value type
EL-evaluated
No File Yes
Defines the file that is uploaded into Salesforce and attached into the created feed post.

If not defined, the current active Dynamo template is uploaded.
parentId

Required
Value type
EL-evaluated
Yes String Yes
Defines the record whose Chatter feed receives the new post. The resolved String should be the ID of the record.
fileName

Required
Value type
EL-evaluated
No String Yes
Defines the value of the PathOnClient field for the created ContentVersion record, which Salesforce uses to define the type of the file (PDF, DOCX, etc.). The resolved String should therefore have a file suffix appropriate for the uploaded file data.

If not defined, the value will be the file name of the currently running Dynamo template. 
title

Required
Value type
EL-evaluated
No String Yes
Defines the title of the created ContentVersion record, which will appear as the title of the file in Salesforce.

If not defined, the title will be the name of the currently running Dynamo template.  
description

Required
Value type
EL-evaluated
No String Yes
Defines the description of the created ContentVersion record.  

Comments

0 comments