Loading
Scheduled maintenance for Salesforce HelpRead More
CRM Analytics
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Add the Predicate to the Metadata File

          Add the Predicate to the Metadata File

          For a dataset created from a CSV file, you can specify the predicate in the metadata file associated with the CSV file or when you edit the dataset.

          You must escape the double quotes around string values when entering a predicate in the metadata file.

          In this example, you add the predicate to the metadata file shown below.

          { 
             "fileFormat": { 
             "charsetName": "UTF-8", 
             "fieldsDelimitedBy": ",", 
             "fieldsEnclosedBy": "\"", 
             "numberOfLinesToIgnore": 1 }, 
             "objects": [ 
                { 
                   "name": "Targets", 
                   "fullyQualifiedName": "Targets",
                   "label": "Targets", 
                   "rowLevelSecurityFilter": "'AccountOwner' == \"$User.Name\"", 
                   "fields": [ 
                { 
                   "name": "AccountOwner", 
                   "fullyQualifiedName": "Targets.AccountOwner", 
                   "label": "Account Owner", 
                   "type": "Text" 
                }, 
                { 
                   "name": "Region", 
                   "fullyQualifiedName": "Targets.Region", 
                   "label": "Region", 
                   "type": "Text" 
                }, 
                { 
                   "name": "Target", 
                   "fullyQualifiedName": "Targets.Target", 
                   "label": "Target", 
                   "type": "Numeric", 
                   "precision": 16, 
                   "scale": 0, 
                   "defaultValue": "0", 
                   "format": null 
                }, 
                { 
                   "name": "TargetDate", 
                   "fullyQualifiedName": "Targets.TargetDate", 
                   "label": "TargetDate", 
                   "description": "", 
                   "type": "Date", 
                   "format": "dd/MM/yy HH:mm:ss", 
                   "isSystemField": false, 
                   "fiscalMonthOffset": 0 
                } 
                ]
                } 
             ]
          }
           
          Loading
          Salesforce Help | Article