Loading
Table des matières
Sélectionner des filtres

          Aucun résultat
          Aucun résultat
          Voici quelques conseils de recherche

          Vérifiez l'orthographe de vos mots-clés.
          Utilisez des termes de recherche plus généraux.
          Sélectionnez moins de filtres pour élargir votre recherche.

          Recherchez dans toute l’aide de Salesforce
          Lookup Element (Managed Package)

          Lookup Element (Managed Package)

          For the managed package runtime, run a query using text input to retrieve Salesforce data using the Lookup element. The retrieved data is returned in Value/Label pairs and becomes available for selection in a dropdown list.

          Managed Package app icon This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

          The Lookup element calls the Omnistudio Data Mapper Extract service to query sObject tables based on the parameters configured in the Properties section. To avoid performance issues, keeping the number of value results under 150 is recommended. To use a custom Apex class to perform the lookup, select the Custom type. Lookup elements display values from Salesforce based on a standard SOQL query built using the parameters of the Lookup elements.

          SObject Type

          To query for SObject data:

          1. Set the Data Source Type to SObject.
          2. Under Input Parameters, configure these fields:
            • Data Source: Select an Element Name from the dropdown to send that element's JSON value in the lookup request. For example, suppose the Data Source is a Text input element named CompanyName that asks the user for the name of an Account.
            • Filter Value: Enter a name for the JSON value to use in the lookup query. You can use any value as long as it matches a Filter Value in a Lookup Query Configuration.

            This example image sets the path to the CompanyName JSON node from the first step and passes Company Name as a filter value in the query.

            image
          3. Configure the Lookup Query Configuration:
            1. Click + Add New Lookup Query Configuration.
            2. (Optional) In Lookup Priority, enter a number to set priority for the Lookup order if there are multiple queries.
            3. In Lookup Object, select an SObject.
            4. In Lookup Object Field, select an SObject field to run the query on.
            5. Click Filter Operator to select an operator. For example, to return an exact match, use the = operator, or to select matches similar to the filter value, select the LIKE operator.
            6. In Filter Value, enter the name of a Filter Value used in the Input Paramters section. In the previous example, this value is Company Name.
            7. Set the return path for the filtered values by adding the Element Name of the Lookup element into the JSON path.
            This example image sets the Lookup Object to Account, the Lookup Object Field to Name, the Filter Operator to LIKE, the Filter Value to Company Name, and the JSON Path to Company.
            image
          4. In the Populate Lookup Element with Query Results section, set a label and a value for the Lookup results by configuring these fields:
            • Label: Set the label for a Lookup Element's dropdown list to a JSON Value returned by the query. Because the query returns the values in the Lookup Element's JSON Path, you must set the full path. For example, to display an Account Name as a label in a Lookup Element named Company, the full path is Company:Name.
            • Value: Set the Value to an Object field that populates the Lookup Element's JSON Node using the full path. When a user selects a label, the value populates the Lookup element's JSON Node. For example, to use an Account Id for a JSON value when a user selects an Account Name from the Lookup element, the full path is Company:Id.
            This example image sets the Value to Company:Id and the Label to Company:Name.
            image
          5. Preview the Omniscript to ensure the query is working and the value is being set correctly.
            The query is structured in this format:
            SELECT Lookup Object WHERE Lookup Object.Field Name = Filter Value
            

          Custom Type

          Use the Custom type to call a custom Apex class.

          The Apex class implements namespace.VlocityOpenInterface, where namespace is the namespace of the package. The source is namespace.ClassName.MethodName.

          Picklist Filter by Record Type

          Enable the filtering of picklist options by record type.

          You can look up picklist fields and record types for an object in Setup in the Object Manager.

          Before using the Record Type filter, set up a Remote Site to enable the options to load into the Omniscript preview Visualforce page.

          1. Navigate to the Omniscript Designer home page.
          2. Copy the text in the URL bar from https to com, for example https://doc-demo-vlocity.visualforce.com.
            https://doc-demo-vlocity.visualforce.com/apex/OmniScriptHome?sfdc.tabName=01rlu000001A3aC
          3. From Setup, enter Remote Site into the quick find box, and click Remote Site Settings.
          4. Click New Remote Site.
          5. For the Remote Site Name, enter vlocity.
          6. For the Remote Site URL, paste the URL from Step 2.
          7. Click Save.
          8. To filter options:
            1. In the Picklist Object and Field property, enter the picklist in the following format: ObjectAPIName.FieldAPIName.
            2. Filter the picklist by Record Type by entering the Record Type into the Record Type property. This property supports %MergeFields%.
           
          Chargement
          Salesforce Help | Article