I think I'm finally on the basic level of formula now. Here one for you to get an idea if you want to implement it yourself. From here I will create many more formula for other thing. What this formula do?
1) Create a related Meeting and Due Date
2) If the date change I want the date in the Meeting to be change too
3) I also want to add a Note so say that it was change. This along with Audit field allow admin to keep track
4) I assigned my Assigned User to a new user with the id, this user I call it "CRM System" this way I know it was create by my EspoCRM Formula rather than a manual edit from me or someone else.
5) I think it still a few bug need to get sort, Error 500 but generally it should work.
6) I only show 1 formula but it pretty much the same, just change as you need it to.
7) You will need at least 2 new field, or use existing one if you have them.
Code:
// Start of Finance meeting creation $financeNAME = string\concatenate(ifThenElse(contractDate==financeDate, "CONTRACT IS UNCONDITIONAL - ", '\n', "Finance Due Date - "), caseName); /// Finance Part ifThen (financeDateMeetingID==null && type=='Property', financeDateMeetingID = record\create('Meeting', 'name', $financeNAME, 'dateStart', financeDate, 'parentType', entity\setAttribute('parentType', 'Case'), 'parentId', id, 'assignedUserId', 'id_of_the_assigned_user_go here')); ifThen(entity\isAttributeChanged('financeDate'), record\update('Meeting', financeDateMeetingID, 'dateStart', financeDate, 'description', "Finance Date Has Change")); // END of Finance meeting creation
Leave a comment: