Hi Helga,
you can set the Expose as Microflow Action in javaaction of ‘retrive entity by ID’.
Exposing the Java action will make it appear in the Toolbox window when editing a microflow in the category of your choice.
Refer the below doc:
https://docs.mendix.com/refguide/java-actions/#expose-microflow-action