<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Get entry object by user ID</title>
		<link>https://legacy.forums.gravityhelp.com/topic/get-entry-object-by-user-id</link>
		<description>Gravity Support Forums Topic: Get entry object by user ID</description>
		<language>en-US</language>
		<pubDate>Thu, 23 Apr 2026 16:34:24 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/get-entry-object-by-user-id" rel="self" type="application/rss+xml" />

		<item>
			<title>Justin Tadlock on "Get entry object by user ID"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-entry-object-by-user-id#post-28708</link>
			<pubDate>Tue, 28 Jun 2011 13:45:15 +0000</pubDate>
			<dc:creator>Justin Tadlock</dc:creator>
			<guid isPermaLink="false">28708@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks, Alex.  That's all I needed to know.  I was hoping there was a quick function, but I'm okay with using an SQL statement.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Get entry object by user ID"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-entry-object-by-user-id#post-28706</link>
			<pubDate>Tue, 28 Jun 2011 13:37:39 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">28706@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Justin,&#60;br /&#62;
To query the entry data using the created_by field, you can use the following SQL statement.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[sql]
SELECT l.*, field_number, value
FROM wp_rg_lead l
INNER JOIN wp_rg_lead_detail ld ON l.id = ld.lead_id
WHERE l.created_by=%d&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The only caviat is that this won't return you the data organized the way the entry object is.&#60;br /&#62;
To do that you would need to make a call to RGFormsModel::build_lead_array(...);&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$entries = RGFormsModel::build_lead_array($results, true);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The problem is that this method is private. I am not opposed to making it public as I can see it being useful in situations like this, but you will need to get a dev version of Gravity Forms from me.  If you are interested, just email me at &#60;a href=&#34;mailto:alex@rocketgenius.com&#34;&#62;alex@rocketgenius.com&#60;/a&#62; and I will send it your way.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Justin Tadlock on "Get entry object by user ID"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-entry-object-by-user-id#post-28681</link>
			<pubDate>Tue, 28 Jun 2011 11:14:52 +0000</pubDate>
			<dc:creator>Justin Tadlock</dc:creator>
			<guid isPermaLink="false">28681@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have quick question that I hope you can help with.&#60;/p&#62;
&#60;p&#62;I need to get an entry object by user ID.  The form can only be submitted by logged-in users, so the $entry['created_by'] field is set.  I just need to know how to pull the entry from the database using that user's ID.&#60;/p&#62;
&#60;p&#62;I couldn't find anything in the developer docs, but I might be looking in the wrong place.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
