Get "CustomEntity01" id?

Hi,
I’m able to get shotID, but now I need to get the ID for a file that isn’t a shot but is a “CustomEntity01”. Here is how I’m getting the shotID:

result = sg.find_one(‘Shot’, [[“code”, “is”, fName]], [‘project’, ‘id’])
shotID = result[‘id’]

I’m not finding a good example in the Shotgrid/Flow API reference.

thx

Replace ‘Shot’ with ‘CustomEntity01’ in the find_one call

Yes! Thank you.