Page 1 of 1

returning a numeric value bases on person

Posted: 09 Jan 2020
by Roo
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";
}

Re: returning a numeric value bases on person

Posted: 09 Jan 2020
by Roo
Ignore this - I've done it another way via a workflow