How to get entity name from CreateEvent
- Krisztian_PinterOP 1
Hey,
I’m trying to use
stream_manyfrom the Daml Python bindings.async with dazl.connect(url = url, act_as = some_party) as client: async for event in client.stream_many( "Domain:ModelA", "Domain:ModelB" ).creates(): logging.info(f">>>> created {event.contract_id} {event.payload}")Looking at the fields of CreateEvent it seems like I have no way of determining if an
eventis about the creation ofModelAorModelB.
Am I missing something? - Krisztian_Pinter
I found that
event.contract_id.value_typehas the name of the template.