Skip to main content

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!!!!

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


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


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