Skip to main content
added 4 characters in body
Source Link
Eric Alexander
  • 43.4k
  • 10
  • 55
  • 93

I eventually managed to solve the problem by building a default formula using a XPath expression that fetches the teamID in the Persons list :

xdXDocument:GetDOM("Persons")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Team[../d:Person/pc:Person/pc:AccountId = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:Person/pc:Person/pc:AccountId]

xdXDocument:GetDOM("Persons")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Team[../d:Person/pc:Person/pc:AccountId = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:Person/pc:Person/pc:AccountId] 

I eventually managed to solve the problem by building a default formula using a XPath expression that fetches the teamID in the Persons list :

xdXDocument:GetDOM("Persons")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Team[../d:Person/pc:Person/pc:AccountId = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:Person/pc:Person/pc:AccountId]

I eventually managed to solve the problem by building a default formula using a XPath expression that fetches the teamID in the Persons list :

xdXDocument:GetDOM("Persons")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Team[../d:Person/pc:Person/pc:AccountId = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:Person/pc:Person/pc:AccountId] 
Source Link
Seb_Lz
  • 19
  • 1
  • 4

I eventually managed to solve the problem by building a default formula using a XPath expression that fetches the teamID in the Persons list :

xdXDocument:GetDOM("Persons")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Team[../d:Person/pc:Person/pc:AccountId = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:Person/pc:Person/pc:AccountId]