Thanks all, I figured it out:<br><br>## GET last entry in db and obtain ID<br>## Find_Last_ID is my ZSQL method<br>## the [0][0] part is record_number/record_item repectively<br>## I only have one record in this method's return so I use [0] [0]
<br><br>get_last_id = container.Find_Last_ID().tuples()[0][0]<br><br><br><div><span class="gmail_quote">On 11/24/05, <b class="gmail_sendername">Mike Jakowlew</b> &lt;<a href="mailto:mjakowlew@gmail.com">mjakowlew@gmail.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Here is what I need to accomplish:<br><br>I need to call a Z-SQL method from within python and store the result in a variable in python. I know this could probably be done easier with ZPT's or DTML, however the program that I've written does many things and depends on this particular variable for the majority of the program.
<br><br>My overall program:<br><br>Uploads a File (Working)<br>Write an entry to a MS SQL DB (Working)<br>Send an Email to alert user of upload (Working)<br><br>in this particular case all I need is the id of the last row in the db before the e-mail is sent out. The e-mail itself sends a link that calls another SQL method with ID as the parameter passed.
<br><br>I've tried to use the <a href="http://container.id" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">container.id</a> method, but that just returns the name of the Z-SQL method.<br><br>Thanks in advance,
<br>mjakowlew<br>

</blockquote></div><br>