Well, if you have read the first page of this message string, Hilary says:
"So - use ChangeConnectionUrl on the connection to lists.asmx to change it to your "current" site. Query the getlist method with your list name and one piece of info you'll get back is the GUID. Use ChangeConnectionUrl with the top secret undocumented listguid parameter for your SharePoint list connection......and you will now be querying your "current" site. :) you will see that the listguid parameter is top secret and not documented anywhere yet except this message string."
Here is what I did in my form:
- SiteURL - Field with value = function SharePointSiteUrl()
- GUID - Field that contains the list's GUID
- ListName - Field for the name of the list I'm changing (Mine is set to "Agency")
- GetListUDC - Data Connection for GetList
On Qdabra's finishLoading parameter, I set a rule to set the current URL:
- concat("ChangeConnectionUrl /dsname=GetListUDC /url=", SiteURL, "_vti_bin/lists.asmx")
- Expanded: concat("ChangeConnectionUrl /dsname=GetListUDC /url=", my:TestFields/my:SiteURL, "_vti_bin/lists.asmx")
To get the GUID for a specific list:
- Set a field's value: listName (from the GetList data connection queryFields) to ListName (this is where I stored the name for my list)
- Query using a data connection: GetListUDC (the name of my data connection for GetList)
- Set a field's value: GUID to: *[local-name() = "List"]/@*[local-name() = "ID"]
- Expanded: xdXDocument:GetDOM("GetListUDC")/dfs:myFields/dfs:dataFields/tns:GetListResponse/tns:GetListResult/*[local-name() = "List"]/@*[local-name() = "ID"]
- see Hilary's excellent explanation on Page 2 of this message string.
To retrieve the list you want with the correct URL/GUID (this is the super-secret part!!!) (NOTE: My list name is "Agency")
- Set a field's value: Command (from QdabraRules) to: concat("ChangeConnectionUrl /dsname=Agency /url=", SiteURL, " /listguid=", GUID)
- Expanded: concat("ChangeConnectionUrl /dsname=Agency /url=", my:TestFields/my:SiteURL, " /listguid=", my:TestFields/my:GUID)
- Query using a data connection: mine is "Agency"
Hopefully this makes sense. Hilary, if you happen to be looking at this, please correct anything that I have wrong, or could have been done better! =)