Hi Gal Verlic,
Check the security and access for the account entity
Hi Gal,
Did you check the security level to the Entities and Microflow on your module/app for your user and module roles?
Regards,
Daniel
Hi thank you both, that fixed my entity access error but now I'm trying to fix my logic for checking if the chosen time is available, right now I have two retrieves then a decision($Reservation/PickedDate < $Reservation/EndTime and $Reservation/PickedEndTime > $Reservation/Date) which throws an error and I also think it's incorrect. I want to check also if the availability is more than 0 for the chosen charger during that time because I have a scheduled task which increases the availability back to 1 when a reservation is finished
Hi Gal,
To check the availability of an asset, you first check if there is a reservation within the selected date range. You can use a microflow indeed:
Retrieve first Reservation from database.
Xpath constraint:
[
Reservation_Asset = $PickedAsset
StartDate < $PickedEnd
and EndDate > $PickedStart
]
You can use a Non persistent entity to populate the search criteria.
This should give you the answer if the asset has been reserved on the specified period => Use a Decision: if $Reservation = empty then true else false, whereby true means available and false means unavailable.
I don't suggest using a scheduled event each 30 secs as this is quite expensive.
Hope this helps.
Jeroen