HHH Posted September 26, 2023 Share Posted September 26, 2023 I have an IC form where if field1 has value A then field2 is displayed and if field1 has value B then field3 is displayed so the user can fill them. Normal text fields so nothing strange there. What I want to do in the Business process is to send the content of field2 or field3, depending on which has a value, to MS Teams. The current text in the Workflow that is sent to Teams is something like: We have restarted the service &[functions.pcf("form1","field_2")]. How do I get this to send different texts depending on which field in the IC has a value? Link to comment Share on other sites More sharing options...
Victor Posted September 26, 2023 Share Posted September 26, 2023 @HHH decision nodes whereby you check if the field from IC has a value... e.g. field X has value? :: if Yes, do what needs to be done and continue workflow; if No, field Y has value? :: if Yes, idem as for X; if No, field Z has value? and so forth... 1 Link to comment Share on other sites More sharing options...
HHH Posted September 26, 2023 Author Share Posted September 26, 2023 @VictorNot the answer I was hoping for, but thanks. Link to comment Share on other sites More sharing options...
Steve Giller Posted September 26, 2023 Share Posted September 26, 2023 I'd also try: We have restarted the service &[functions.pcf("form1","field_2")]&[functions.pcf("form1","field_3")]. I don't guarantee that will work, but depending on how that node handles empty variables that might be a shortcut. This does not work in email templates, so no promises. 1 Link to comment Share on other sites More sharing options...
HHH Posted September 27, 2023 Author Share Posted September 27, 2023 @Steve Giller Do you know if these work the same way with modifiers that email templates do to make it neater? So instead of {{.h_firstname|empty}} I'd use We have restarted the service &[functions.pcf("form1","field_2"|empty)]&[functions.pcf("form1","field_3"|empty)]. Link to comment Share on other sites More sharing options...
Steve Giller Posted September 27, 2023 Share Posted September 27, 2023 1 hour ago, HHH said: Do you know if these work the same way with modifiers that email templates do to make it neater? 17 hours ago, Steve Giller said: This does not work in email templates I do, and they will not. Email Templates do not have access to Workflow variables - firstly that would mean you'd need a different set of Templates for every Workflow, and even within a Workflow the Templates would only work at certain times. Link to comment Share on other sites More sharing options...
SamS Posted September 27, 2023 Share Posted September 27, 2023 @HHH A final alternative is to have field_2 and field_3 on SEPARATE customized forms(*) - each with the same Form ID AND Field ID (eg secondForm.field_2)(*) - then effectively both answers will be "merged" on the BP-side (as secondForm.field_2). (*) i.e. the Decision-node happens in the IC AFTER field_1. (**) you WILL get a warning that you may have set up your IC incorrectly, but - as you did it on purpose - 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now