How do I associate my data to my current user?

0
Hi All, new user to Mendix.   Currently i have this mircoflow to try to create a 'buy' button for my flight app where it just saves flight details but currently it saves the details for every user and not just the current user who has booked it how do i fix this? I understand it is something to do with association:     Currently I have made the booking entity and associated with the users:  
asked
1 answers
1

Hi there,

 

If you want to associate the BookingFlights to the current user, you will need to get the current user's account object via your microflow:

image.png

 

Once you have the account, you can associate it to your newly created BookingFlights object:

image.png

 

Hope this helps (:

answered