Pull in Resolution Notes from BPM Approval Flow to custom field on main record

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jeffreysgrossman
    Member
    • Jan 2025
    • 96

    #1

    Pull in Resolution Notes from BPM Approval Flow to custom field on main record

    I have been trying to pull in the resolution notes from an approval flow in the flowchart bpm tool. With no success. I have tried several things with a script task in the flow but am not able to figure out exaclty what is needed to get it to update the main record with the resolution notes feild from the task. Any help is very much appreciated

    Click image for larger version

Name:	image.png
Views:	8
Size:	23.5 KB
ID:	119863

    I have the approver custom feild on the main record updated with this script task:
    Click image for larger version

Name:	image.png
Views:	10
Size:	21.8 KB
ID:	119862
    I tried adding different things to this to get the resolution notes to pull into a custom field I have on the main entity called notes.

    HTML Code:
    notes = bpm\processEntity\attribute('resolutionNote');
    but everything I have tried so far does not work.

    I have asked the googles and AI but nothing again seems to work.

    Any help is very much appreciated.

    Thank You
    Jeff
  • yuri
    Member
    • Mar 2014
    • 9191

    #2
    Hello Jeff,

    The values can be obtained with the function bpm\createdEntity\attribute.



    $resolutionNote = bpm\createdEntity\attribute('ALIAS_ID', 'resolutionNote');

    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...