soql to csv in cli

using the salesforce cli to export a soql query to a csv file is just magic.

sfdx force:data:soql:query -q “select id,parentId,parent.Name,createdDate from feeditem where createdById = ‘0051W0000065wTP’” -r csv > yourfilename.csv

that is it

sfdx
force:data:soql:query
-q “insert query here”
-r csv

boom!

 
10
Kudos
 
10
Kudos

Now read this

checking for record access in visual workflow

the UserRecordAccess object “Represents a user’s access to a set of records”. in apex, you can query this object to determine if a user can view, edit, delete, share, or transfer a record. SELECT RecordId, HasReadAccess,... Continue →