Skip to main content
Solved

Dynamic Task Expression Help

  • December 14, 2023
  • 3 replies
  • 112 views

Forum|alt.badge.img+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!!!!

Best answer by NigelIM

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

View original

3 replies

NigelIM
Do Gooder (Employee)
Forum|alt.badge.img+4
  • Do Gooder (Employee)
  • 6 replies
  • December 14, 2023

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


NigelIM
Do Gooder (Employee)
Forum|alt.badge.img+4
  • Do Gooder (Employee)
  • 6 replies
  • Answer
  • December 14, 2023

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


Forum|alt.badge.img+7
  • Author
  • Sidekick (Customer)
  • 15 replies
  • December 19, 2023
NigelIM wrote:

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings