In Microsoft flow, i was able to handle note entity operations dynamically by using regarding field with Dynamic 365. Below is the attached screenshot.

But with CDS, instead of Regarding field we will have to provide values for each entity lookup field.

Please suggest how can I perform note operations dynamically in CDS, also let me know if there is any work around for the same.