Unable to create benefit plan from record producer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2023 11:23 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2023 03:03 PM
Why not post hte script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2023 03:05 PM
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.