Solved

Dynamic Task Expression Help

  • 14 December 2023
  • 3 replies
  • 64 views

Userlevel 2
Badge +7

Hello All, 

I am hoping someone can help.

I am trying to create Dynamic tasks in a process which are triggered upon the CSG of the parent event. I have so far tried:

if($new.parentEvent.csgShortCode = "ABA_CSG","ABA_CSG",
if($new.parentEvent.csgShortCode = "SBA_CSG","SBA_CSG",$NO_VALUE ))

 

if($new.parentEvent.csg.ShortCode = "ABA_CSG","ABA_CSG",
if($new.parentEvent.csg.ShortCode = "SBA_CSG","SBA_CSG",$NO_VALUE ))

 

if($new.parentEvent.csg.shortCode = "ABA_CSG","ABA_CSG",
if($new.parentEvent.csg.shortCode = "SBA_CSG","SBA_CSG",$NO_VALUE ))

 

if($new.parentEvent.CsgShortCode = "ABA_CSG","ABA_CSG",

if($new.parentEvent.CsgShortCode = "SBA_CSG","SBA_CSG",$NO_VALUE ))

 

if($new.parentEvent.Csg.ShortCode = "ABA_CSG","ABA_CSG",
if($new.parentEvent.Csg.ShortCode = "SBA_CSG","SBA_CSG",$NO_VALUE ))

 

Has anyone done something like this before, if so can you please help!!!!

icon

Best answer by NigelIM 14 December 2023, 18:37

View original

3 replies

Badge +4

Hi Chris,

Are you getting any errors, where are the expressions failing in the editing of the Task, when you save it in the Process Designer, or when the Task is being created in an attached Process flow?

Thanks

Nigel

Badge +4

Hi Chris,

I think the parentEvent isn’t required, as the Process is running against the Parent Event, so give this a try:

if($new.csg.shortCode = "ABA_CSG","ABA_CSG",
if($new.csg.shortCode = "SBA_CSG","SBA_CSG",$NO_VALUE ))

Thanks

Nigel

Userlevel 2
Badge +7

Hi Chris,

I think the parentEvent isn’t required, as the Process is running against the Parent Event, so give this a try:

if($new.csg.shortCode = "ABA_CSG","ABA_CSG",
if($new.csg.shortCode = "SBA_CSG","SBA_CSG",$NO_VALUE ))

Thanks

Nigel

Thanks Nigel, this has worked perfectly.

Once again many thanks!

Reply