Receiving Error message: Calculate the number of vacation days, based on the difference between “End Date” and “start date”.

Hello, I am new with Creatio using “No code”. Trying to created, a business process when is triggered calculate the number of vacations day, based on the difference between “End Date” and “start date”.

 

This is the formula that I am using:

(int)RoundOff(([#Read Data.First item of resulting collection.End Date#]-[#Read Data.First item of resulting collection.Start Date#]).TotalDays)

 

Error message:

Formula value error: Cannot convert type "Int32" to "Entity"

 

Please see attached screen print.

 

Thank you! 

 

Like 0

Like

2 comments

Hello,

 

You can use the formula element and calculate the amount using C# operators https://academy.creatio.com/docs/8.x/no-code-customization/bpm-tools/business-process-setup/process-formulas

Kalymbet Anastasia,

Hello, thank you for response. 

I have checked that section a few days ago but unfortunately is not that clear how to use it in No-Code environment. 

 

I am new with creatio, transitioning from "Microsoft VBA coding" . Trying to find example of how to do this in Creatio, I have not fund any information on internet about this like Microsoft products. You can find any codes and detail examples online when dealing with Microsoft products.  

 

Have a great day!

Regards, Jay   

Show all comments