• Resolved herbj

    (@herbj)


    I am trying to create a page that will return results from an entity based on field entry. Example: I would enter my name and select a value from a drop down. then search D365 and return records that have those values. Currently, I’m just showing the whole list from a custom view.
    Any suggestions would be appreciated.
    Thank You

Viewing 1 replies (of 1 total)
  • Plugin Author alexacrm

    (@alexacrm)

    Hi @herj

    you can use parameter substitution in views. For example, search can be a q parameter in query string and your view (that would include {0} parameter, could be something like:

    
    {% view entity="contact" name="Active Contacts" parameters=[ params.q ] count="10" cache="PT30M" %}{% endview %}
    

    For more flexibility, you can build FetchXML in twig on the fly and use query string parameters in there.

Viewing 1 replies (of 1 total)
  • The topic ‘Add Search function’ is closed to new replies.