This page (revision-13) was last changed on 26-Nov-2021 10:22 by kparrott

This page was created on 26-Nov-2021 10:22 by JMyers

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
13 26-Nov-2021 10:22 1 KB kparrott to previous
12 26-Nov-2021 10:22 1 KB JEscott to previous | to last
11 26-Nov-2021 10:22 1 KB JEscott to previous | to last
10 26-Nov-2021 10:22 1 KB JEscott to previous | to last
9 26-Nov-2021 10:22 1 KB JEscott to previous | to last
8 26-Nov-2021 10:22 1 KB JEscott to previous | to last
7 26-Nov-2021 10:22 1 KB JEscott to previous | to last
6 26-Nov-2021 10:22 1 KB JMyers to previous | to last
5 26-Nov-2021 10:22 1 KB JMyers to previous | to last
4 26-Nov-2021 10:22 1 KB JMyers to previous | to last
3 26-Nov-2021 10:22 1 KB JMyers to previous | to last
2 26-Nov-2021 10:22 980 bytes JMyers to previous | to last
1 26-Nov-2021 10:22 977 bytes JMyers to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 3 changed 2 lines
!!!P2K__CF_ECR_EXISTS
The workflow custom function called P2K_CF_ECR_EXISTS reads through the Contact Role Contact Types and returns TRUE if it finds a match to the value populated to the UserCalc global [CONTACT_TYPE] or FALSE if it does not.\\
!!!P2K_CF_ECR_EXISTS
The workflow custom function called P2K_CF_ECR_EXISTS reads through the Contact Role [Contact Types|CONTACT_TYPE] and returns TRUE if it finds a match to the value populated to the UserCalc global [CONTACT_TYPE] or FALSE if it does not.\\
At line 7 changed one line
In the [IMUC] screen create the Global called CONTACT_TYPE as a type of “Char”.
In the [IMUC] screen create the Global called CONTACT_TYPE as a type of “Char”.\\ \\
At line 10 changed 2 lines
!!Sample Work Flow UserCalc
A sample Work Flow UserCalc in its simplest form (see example in screenshot) would be to set the CONTACT_TYPE global to ‘03’ (Emergency Contact) then call the P2K_CF_ECR_EXISTS custom function.
!!Sample Workflow UserCalc
A sample Workflow UserCalc in its simplest form (see example in screenshot) would be to set the CONTACT_TYPE global to ‘03’ (Emergency Contact) then call the P2K_CF_ECR_EXISTS custom function.
At line 13 changed one line
If the triggering contact record has a contact role with “Emergency Contact” set them the custom function will return TRUE and we proceed to the next line otherwise we jump to the end.
If the triggering contact record has a [contact type|CONTACT_TYPE] with “Emergency Contact” set, then the custom function will return TRUE and the system proceeds to the next line, otherwise the system jumps to the end.
At line 15 changed one line
In our sample the result of getting TRUE returned has the ECT.SECURITY_LEVEL being set to ‘01’ which represents “Emergency”.
In our sample, the result of getting TRUE returned has the [Security Level|SECURITY_LEVEL] being set to ‘01’ which represents “Emergency”.
At line 17 changed 2 lines
In a real world scenario you would add conditions to the usercalc to check whether the Security Level already had a value.
This scenario will only work when UPDATING a contact record. This will not work when inserting a new record as the contact type must already exist on the record in order for the custom function to be able to read it.
In a real world scenario you would add conditions to the UserCalc to check whether the security level already had a value.\\ \\
[P2K_CF_ECR_EXISTS_02.JPG]
----
![Notes|Edit:Internal.P2K__CF_ECR_EXISTS]
[{InsertPage page='Internal.P2K__CF_ECR_EXISTS' default='Click to create a new notes page'}]