Hi,
i have made an Entity to make an approval process.
In the Formula i have many conditions to check.
I want to ask if this is even possible, or did i make to many if conditions?
Is this from the Syntax correct and possible? Or are there too many things in the bold line?
regards Jens
i have made an Entity to make an approval process.
In the Formula i have many conditions to check.
I want to ask if this is even possible, or did i make to many if conditions?
Code:
// CN certified und prüfung CN Summe IfThen( [B]status == 'certified' && intstatus == 'accepted' && cnrequestoruid != modifiedBy.userName,[/B] cncertifier = string\concatenate(modifiedBy.firstName, " ",modifiedBy.lastName); intstatus = 'certified'; ifThen(cnsum < 100, message = 'Prüfung und Freigabe durch einen Teamleiter notwendig' ); ifThen(cnsum >= 100 && cnsum < 500, message = 'Prüfung und Freigabe durch einen/eine Supervisor/in notwendig'; entity\addLinkMultipleId('teams', '5ed113eed458b9345') ); ifThen(cnsum >= 500, message = 'Prüfung und Freigabe durch die Geschäftsführung notwendig'; entity\addLinkMultipleId('teams', '5e15f34a2d1230fab') ); cncertifierdatetime = datetime\now(); cncertifieruid = modifiedBy.userName );
regards Jens
Comment