question

Upvotes
Accepted
3 0 1 6

search request for a last name

is it possible to built search request just for a last name (without specifying company or permid)?

how such a request for 'Person' data should be constructed?

intelligent-tagging-apipermid-apiopen-permid-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
38.1k 69 35 53

@EA_MZ

The entity search doesn't support the person entity. Therefore, you need to use a matching API to match the name to the person entity.

However, to use the matching API with the person entity, it requires at least [firstname,lastname,companypermid] or [firstname,lastname,companyname].

person="""
LocalID,FirstName,MiddleName,PreferredName,LastName,CompanyPermID,CompanyName,NamePrefix,NameSuffix
1,Satya,,,Nadella,,Microsoft Corp,,
2,Satya,,,Nadella,4295907168,,,
3,Martin,,,Jetter,,International Business Machines Corp,,
4,Martin,,,Jetter,,IBM,,
"""
output,err = opid.match(person,dataType="Person", raw_output=False)
output


1627613603968.png


1627613603968.png (67.4 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea