Skip to Content
author's profile photo Former Member
Former Member

How to turn flexible search statement into impex export

I would like to export the results of the following flexible query:

select {o.extendedorderid},{o.code}, {s.code}, {creationtime} from {order as o join orderstatus as s on {o.status}={s.pk}} where {s.code} = 'SUBMITTED'

I have been researching but still coming up short.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 06, 2016 at 06:52 AM

    you can also try

     INSERT_UPDATE order;pk;code;creationtime
     "#% impex.exportItemsFlexibleSearch( "" select {o:pk}, {o.code}, {o.creationtime} from {order as o join orderstatus as s on {o.status}={s.pk}} where {s.code} = 'SUBMITTED'"");"
     
    
    
    
    

    If you want to change the query to multiple joins then update the insert_update script accordingly.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 06, 2016 at 06:39 AM

    Hello John,

    Please go to HAC -> Console -> Impex Export. Then put below script. it will export. Similary you can put your query in the below example. Export. Script will be executed and exported data will come in the dataexport.zip.

      INSERT_UPDATE Employee;pk
      "#%impex.exportItemsFlexibleSearch(""select {pk} from {Employee} "");"
    
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.