Leave request

Hi, experts I’m currently working on the leave request app , in that i want to separate the leave type whether it was casual or sick leave      In the above microflow i created an object and set the Casual leaves as 5 and sick leaves as 3 in that depends upon the leave type casual and sick leave get decreased by 1. The available leaves and leaves taken so far is working but i want to fetch the leave type ,In below pitcure based on the leave type selected by the user the number should get decreased    
1 answers

Hi, When you fetch the leave type while changing the object, give condition

if leavetype = casual then casual leaves-1else casual leaves

Do the same for sick leave aswell.

If you have any queries, you can let me know