Unable to create benefit plan from record producer.

pramodkumar
Tera Expert

Hi All,

 

We have a record producer on dmn_demand table which creates demand when user submits request. We are now trying to create benefit plan from record producer script, but it is not working as expected. The system throws error "Task is not type of Project or demand".

There is a task field on benefit plan which refers to task table (demand). Can anyone help me to resolve this issue?

 

Thanks,

Pramod

2 REPLIES 2

Uncle Rob
Kilo Patron

Why not post hte script?

Uncle Rob
Kilo Patron

Generally I'm not a fan of Record Producers producing multiple records via the script.
Its much easier to have the RP insert the base record, then have Flow Designer create / update subsequent records.  
Several advantages to this
- Avoiding errors of this type
- Relying on a much simpler tool, like Flow Designer vs code.
- Flow Designer has WAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY better debugging.
- Flow Designers can exploit the variables every bit as well as script can.