How to Inject the AliasedRecords which were created by async plugins/workflows
thathi opened this issue · comments
For example in this scenario assume that one of the async process or a workflow create another new contact. Is there any way can assert the newly created contact in a generic way?
One way I can thinking of introducing an event handler invoke in AliasedRecordCache.Get(). In the cusomAddToCache based on the alias naming convention I can query the api and records to cache.
Any other way?
I would use the step a {entityName} named {alias} exists with the following values
Then a contact named MyContact exists with the following values
| Property | Value |
| Account | TestAccount |
| Last Name | Smith |