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?

Best Answer

  • Jirapongse
    Answer ✓

    @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