Problem with the connection of two data sets

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • peterberlin
    Active Community Member
    • Mar 2015
    • 1004

    Problem with the connection of two data sets


    Hello.
    We want to create a meeting when creating a new opportunity.
    The workflow creates the meeting but the relationship is not shown.
    In the workflow
    parentType = 'Opportunity';
    parentId = entity\attribute('Opportunity.id');
    parentName = 'Opportunity';

    It does not work.
    Espo 5.9.3, Advanced Pack 2.5.14
    Does anyone have any ideas?

    peter
  • DEN
    Senior Member
    • Apr 2021
    • 106

    #2
    Hello,

    Create Workflow
    Target Entity > Opportunity
    Trigger type > After record created

    Action
    Create Record >> Meeting
    Name > Field:Name
    Parent > Value
    Date End > Field:Close date
    Date Start > Today/Now
    Last edited by DEN; 05-24-2021, 07:31 AM.

    Comment

    • peterberlin
      Active Community Member
      • Mar 2015
      • 1004

      #3
      Thank you.
      But I had already tried that.
      The New Record in the Entity Meeting is created, but there is no connection to the opportunity.
      Parent > Value
      does not work.
      peter

      Comment

      • DEN
        Senior Member
        • Apr 2021
        • 106

        #4
        Can you show me this in screenshot?

        Comment

        • peterberlin
          Active Community Member
          • Mar 2015
          • 1004

          #5
          Click image for larger version

Name:	p1_3.jpg
Views:	406
Size:	68.6 KB
ID:	71105Click image for larger version

Name:	p1_2.jpg
Views:	372
Size:	74.4 KB
ID:	71106

          Comment

          • Maximus
            Senior Member
            • Nov 2018
            • 2731

            #6
            Hi Peter,
            Try this
            Code:
            parentType = 'Opportunity';
            parentId = targetEntity\attribute('id');
            parentName = 'Opportunity';
            You can notice that I replaced your parentId = entity\attribute('Opportunity.id'); with my parentId = targetEntity\attribute('id');

            Comment

            • peterberlin
              Active Community Member
              • Mar 2015
              • 1004

              #7
              hello maximus
              when I use this code, no meeting is generated-.
              peter

              Comment

              • Maximus
                Senior Member
                • Nov 2018
                • 2731

                #8
                Is there any error in a log?
                Could you provide the above screenshots in English please for better understanding?

                Comment

                • peterberlin
                  Active Community Member
                  • Mar 2015
                  • 1004

                  #9
                  Sorry
                  Attached is the sales opportunity, the meeting and the worklflow:

                  Click image for larger version

Name:	P12.jpg
Views:	390
Size:	54.5 KB
ID:	71157Click image for larger version

Name:	p12Worklfow.jpg
Views:	376
Size:	94.4 KB
ID:	71158Click image for larger version

Name:	p11.jpg
Views:	364
Size:	41.9 KB
ID:	71159

                  Comment

                  • Maximus
                    Senior Member
                    • Nov 2018
                    • 2731

                    #10
                    From your screenshots I see that you don't use parentId = targetEntity\attribute('id');. This string is important to link a new meeting to an opportunity. Please insert it into your Workflow action.
                    On the other hand, I've noticed that you are trying to use parentName = 'Opportunity'; I missed this part previously. Actually, you don't need this formula because the 'parentName' parameter will be automatically fetched from a new meeting. Perhaps this row caused the issue.

                    Comment

                    • peterberlin
                      Active Community Member
                      • Mar 2015
                      • 1004

                      #11
                      parentId = targetEntity\attribute('id');
                      is the solution

                      parentName = 'Opportunity';
                      I had to delete it, otherwise a new meeting was not created.

                      Maximus
                      Thanks a lot
                      Last edited by peterberlin; 05-26-2021, 07:21 PM.

                      Comment

                      Working...