Calculated field with runtime Lookup function from another site


Badge +9

Is there a way to lookup a calculated field from another site within the same site collection?

I'm putting in a calculated field on my Nintex2010 form, with a lookup runtime function to display department codes from the parent site.

I've used it before with lookups from the same site, but I can't get it work from another site.

Here is a formula: (I know this one will work if the lookup lists are under the same site where the workflow is being implemented)

lookup("Department-Code Lookup", "ID", Hospitals, "Code")

I also tried this and didn't work:

lookup("/Departments/Finance/Department-Code Lookup", "ID", Hospitals, "Code")

the site hierarchy is: Intranet-> departments-> Finance -> my lookup lists are here

any hints or help is greatly appreciated:)


10 replies

Userlevel 5
Badge +14

check the doc for proper syntax http://help.nintex.com/en-US/nintex2013/help/#Forms/RootCategory/Designer/Nintex.Forms.LookupFunction.htm%3FTocPath%3DFo… 

it should be like 'siteURL|listname'

lookup‌ lookup function‌ other site‌ sept2017mh‌

Badge +7

Dear,

Here an example, 

Am working with a web called "POC" and I want to retrieve a field from a list named "Countries" from another web called business "BusinessTrip" both under the same site collection:

Below the code:

lookup("/BusinessTrip|Countries","Title","Italy","VAT") 

Cheers... happy.png

Badge +8

This solution can be use for Nintex form 365???

Fms.

Userlevel 5
Badge +14

Hi ‌, were you able to resolve this?

Badge +9

Hi Marian Hatala‌, yes, The trick was the vertical bar... "/BusinessTrip|Countries".

Thanks for following up. 

Badge +8

But use nintex form 365 or on premise???

Fms

Badge +9

It resolved it on the on-Premise version. Might be worth a try on office 365, give it a shout.

Userlevel 5
Badge +14

glad to hear happy.png

Badge +8

Yes, I dont know if this solution can be use in Nintex Form 365... :-(

Fms.

Badge +9

How would you lookup root web application site collection's root web from a different site collection?

 

  1. For example, i have nintex form in site : http://sharepoint.test.com/sites/forms
  2. I am using the first calculated value to lookup: http://sharepoint.test.com/sites/workflows, and i am able to successfully get the values: lookup("/sites/workflows|listname", "Title", ""+NamedControl+"", "Designer")
  3. But when i try to lookup the root web application site collection's root web then i do not get anything: lookup("/|listname", "Title", ""+NamedControlFromNumber2BulletPoint+"", "Date")

 

 

 

Reply