question

Upvotes
Accepted
3 1 2 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 512.0 KiB each and 1.0 MiB total.

1 Answer

Upvotes
Accepted
45.2k 103 43 60

@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 512.0 KiB each and 1.0 MiB total.