returning a numeric value bases on person

Discussions about Cross-site Lookup
Locked
User avatar
Roo
Posts: 107
Joined: Tue Oct 24, 2017

09 Jan 2020

Hi - Happy New Year

I've got a simple question (for you guys :))

I want to add a cross site look up that is based on a user and due to me being "out of Action" for sometime have forgotten everything I've previously learnt


The Source link is a field called "Name"
The returning field link is "Requester"

function (term, page) {
if (!term || term.length == 0) {
return "{WebUrl}/_api/web/lists('{ListId}')/items?$select=Id,{LookupField}&$orderby=Created desc&$top=10";
}
return "{WebUrl}/_api/web/lists('{ListId}')/items?$select=Id,{LookupField}&$orderby={LookupField}&$filter=Name eq 'Requester', '" + encodeURIComponent(term) + "')&$top=10";
}
Attachments
Untitled.png
Untitled.png (25.13 KiB) Viewed 8062 times

User avatar
Roo
Posts: 107
Joined: Tue Oct 24, 2017

09 Jan 2020

Ignore this - I've done it another way via a workflow

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests