PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Export Post Body and Post Link

  1. madamelolo
    Member

    Hi I am using Gravity form to create new posts via the Post Body field.

    I would need to export to csv the the link to the post attached to each entry, but when i use the export tool it doesn't show,and Post Body column is empty , though when i open each entry the URL to the post is attached.

    How could I do so ?

    Thanks !

    Posted 13 years ago on Wednesday August 24, 2011 | Permalink
  2. Currently it's not a feature of the export. We can look at adding it in a future release.

    Posted 13 years ago on Wednesday August 24, 2011 | Permalink
  3. madamelolo
    Member

    Hi Carl is there a way via a database query to get the post ID ? If so could you help me define it ?

    Posted 13 years ago on Wednesday August 24, 2011 | Permalink
  4. You'd have to look in the rg_lead table and the rg_lead_detail table and find the data. I don't know off the top of my head exactly where in the database this is going to be stored and our lead developer isn't currently available to answer this question. Technically yes you could do this but it would be done as a customization.

    Posted 13 years ago on Wednesday August 24, 2011 | Permalink
  5. madamelolo
    Member

    Thanks Carl, but as I definitely don't master the query beast, would it be possible to get the full query from your lead developer when he gets back ?
    Do you know when he gets ack as well ?

    Posted 13 years ago on Wednesday August 24, 2011 | Permalink
  6. madamelolo
    Member

    Hi again Carl,
    wondering if doing an edit on the export php file would be the right way adding post id to the default fields:

    //adding default fields
    array_push($form["fields"],array("id" => "id" , "label" => __("Entry Id", "gravityforms")));
    array_push($form["fields"],array("id" => "date_created" , "label" => __("Entry Date", "gravityforms")));
    array_push($form["fields"],array("id" => "ip" , "label" => __("User IP", "gravityforms")));
    array_push($form["fields"],array("id" => "source_url" , "label" => __("Source Url", "gravityforms")));
    array_push($form["fields"],array("id" => "payment_status" , "label" => __("Payment Status", "gravityforms")));
    array_push($form["fields"],array("id" => "payment_date" , "label" => __("Payment Date", "gravityforms")));
    array_push($form["fields"],array("id" => "transaction_id" , "label" => __("Transaction Id", "gravityforms")));

    Posted 13 years ago on Thursday August 25, 2011 | Permalink
  7. You may be able to hack the export.php file to add the additional options, i'm not 100% sure if that data is included in the array that is returned but you can certainly give it a try. As I mentioned we can look at adding this as a feature in a future release.

    Posted 13 years ago on Thursday August 25, 2011 | Permalink