<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Adding SharePoint ID into subject line of Email sent my Infopath Form</title><link>https://www.infopathdev.com:443/forums/thread/124684.aspx</link><pubDate>Thu, 20 Jan 2022 19:02:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124684</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124684.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124684</wfw:commentRss><description>Wonderful - glad you got it working!</description></item><item><title>Re: Adding SharePoint ID into subject line of Email sent my Infopath Form</title><link>https://www.infopathdev.com:443/forums/thread/124683.aspx</link><pubDate>Thu, 20 Jan 2022 18:51:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124683</guid><dc:creator>joshhud</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124683.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124683</wfw:commentRss><description>scratch that it work! you are absolutely amazing. I cant thank you enough.</description></item><item><title>Re: Adding SharePoint ID into subject line of Email sent my Infopath Form</title><link>https://www.infopathdev.com:443/forums/thread/124682.aspx</link><pubDate>Thu, 20 Jan 2022 18:49:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124682</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124682.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124682</wfw:commentRss><description>So - if the data row is showing, that means the issue is with the rule with the filter. You might try setting that data connection to sort by ID descending (you can do this when you walk through the data connection wizard) and then unless this is a super high-traffic form, the first item returned would always be the most recent form ID - then you wouldn&amp;#39;t need a filter. In your earlier screenshot, I&amp;#39;m a little confused by your filter - you want to get the ID in your secondary data connection where the course name in that secondary data connection is equal to the course name in your form&amp;#39;s main data source. Hopefully Course Name is unique?</description></item><item><title>Re: Adding SharePoint ID into subject line of Email sent my Infopath Form</title><link>https://www.infopathdev.com:443/forums/thread/124681.aspx</link><pubDate>Thu, 20 Jan 2022 18:42:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124681</guid><dc:creator>joshhud</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124681.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124681</wfw:commentRss><description>ok i just pulled the data connection into the form and i do see all of the ID populate and when i submit the form the new one shows. But it still is only pulling the first one or a blank when is the filter with course name. 

I switched the data connection to &amp;quot;include data for the active form only&amp;quot; and that stayed blank no matter what. 


also thank you so much you have been so incredibly helpful</description></item><item><title>Re: Adding SharePoint ID into subject line of Email sent my Infopath Form</title><link>https://www.infopathdev.com:443/forums/thread/124680.aspx</link><pubDate>Thu, 20 Jan 2022 18:28:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124680</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124680.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124680</wfw:commentRss><description>You need to just requery the data connection where you are getting the new ID from. So - I am not sure which data connections you are requerying, but it needs to be the one to the library you just submitted to. Drag the data fields onto your form so you can see if the new item that you just submitted is there.</description></item><item><title>Re: Adding SharePoint ID into subject line of Email sent my Infopath Form</title><link>https://www.infopathdev.com:443/forums/thread/124679.aspx</link><pubDate>Thu, 20 Jan 2022 18:25:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124679</guid><dc:creator>joshhud</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124679.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124679</wfw:commentRss><description>Would i do that by added another rule? I added two to refresh different connections and it seems i am getting the same results.

Had a thought, would it be easier to create a unique identifier another way, store that in the form and use that as the ID in my email?</description></item><item><title>Re: Adding SharePoint ID into subject line of Email sent my Infopath Form</title><link>https://www.infopathdev.com:443/forums/thread/124678.aspx</link><pubDate>Thu, 20 Jan 2022 17:33:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124678</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124678.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124678</wfw:commentRss><description>You need to requery the data connection. If your data connection to get the library items runs on load, the data you just submitted won&amp;#39;t be in it - you need to query the library again after submitting to get back the just-submitted item.</description></item><item><title>Re: Adding SharePoint ID into subject line of Email sent my Infopath Form</title><link>https://www.infopathdev.com:443/forums/thread/124676.aspx</link><pubDate>Thu, 20 Jan 2022 16:57:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124676</guid><dc:creator>joshhud</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124676.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124676</wfw:commentRss><description>its part of the rules when the submit button is clicked.</description></item><item><title>Re: Adding SharePoint ID into subject line of Email sent my Infopath Form</title><link>https://www.infopathdev.com:443/forums/thread/124675.aspx</link><pubDate>Thu, 20 Jan 2022 16:51:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124675</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124675.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124675</wfw:commentRss><description>When do you query for the data?</description></item><item><title>Re: Adding SharePoint ID into subject line of Email sent my Infopath Form</title><link>https://www.infopathdev.com:443/forums/thread/124674.aspx</link><pubDate>Thu, 20 Jan 2022 16:32:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124674</guid><dc:creator>joshhud</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124674.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124674</wfw:commentRss><description>not sure how helpful this is, but i took some screenshots of the rules im using. When i run the attached rule its blank. If i take off the filter i just get the first ID number in the list.</description></item><item><title>Re: Adding SharePoint ID into subject line of Email sent my Infopath Form</title><link>https://www.infopathdev.com:443/forums/thread/124673.aspx</link><pubDate>Thu, 20 Jan 2022 15:53:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124673</guid><dc:creator>joshhud</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124673.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124673</wfw:commentRss><description>unfortunately i got a slap on the wrist when i did that last time. Wish i could.</description></item><item><title>Re: Adding SharePoint ID into subject line of Email sent my Infopath Form</title><link>https://www.infopathdev.com:443/forums/thread/124672.aspx</link><pubDate>Thu, 20 Jan 2022 15:43:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124672</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124672.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124672</wfw:commentRss><description>Feel free to attach a copy of your form under the options tab in a reply if you&amp;#39;d like me to take a look. :)</description></item><item><title>Re: Adding SharePoint ID into subject line of Email sent my Infopath Form</title><link>https://www.infopathdev.com:443/forums/thread/124671.aspx</link><pubDate>Thu, 20 Jan 2022 14:17:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124671</guid><dc:creator>joshhud</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124671.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124671</wfw:commentRss><description>Yeah it is interesting. I tried two things after the form submits

1. First submit to SP, then send email pulling the &amp;quot;ID&amp;quot; field from the SP into the email subject but its either blank or only pulls in the first ID number listed (not tied to the specific form)

2. set a rule to run after form is submitted to fill in a field on the form with the &amp;quot;ID&amp;quot; based off the SP library. Then send the email and reference that new field in the email subject. but this is always coming up blank. 

I also tried the 2 scenerios above with a filter to only show if the name on the form and SP matched but that always came back blank

I will tinker with it some more today because i feel like it shouldnt be this difficult.</description></item><item><title>Re: Adding SharePoint ID into subject line of Email sent my Infopath Form</title><link>https://www.infopathdev.com:443/forums/thread/124667.aspx</link><pubDate>Thu, 20 Jan 2022 00:00:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124667</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124667.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124667</wfw:commentRss><description>So - you would need to first submit the form, then query for the data for this form, then you would have the ID. When you set up a library data connection to query data in a form, you have the option to query for data &amp;quot;for this form only&amp;quot; but I suspect that only works when the form is being opened from the library. Might be worth experimenting with. Otherwise, you could add some unique value to the form (userName function + now function should do the trick) and promote that column to the library. Then, after you submit the form, set the query field in a data connection to the library to that unique ID and query the library - you should get back just the form you&amp;#39;ve now submitted - and can then use the ID in the email. Hopefully that makes sense?</description></item><item><title>Adding SharePoint ID into subject line of Email sent my Infopath Form</title><link>https://www.infopathdev.com:443/forums/thread/124664.aspx</link><pubDate>Wed, 19 Jan 2022 19:59:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124664</guid><dc:creator>joshhud</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124664.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124664</wfw:commentRss><description>Sorry this might be a little confusing. Basically I have an infopath form that sends an email when the submit button is pressed. I would like to know if it is possible to somehow pull the ID field from the SharePoint library that holds the submitted forms and add it to the email subject.

The closest i have been able to get is pulling just the first available ID, but i need it to be the one that corresponds to the form that was submitted.

Below is what i used to get the training ID pulled in, but not the right one.

concat(&amp;quot;Training Request ID &amp;quot;, ID, &amp;quot; has been submitted: &amp;quot;, Course_Name)</description></item></channel></rss>