Announcement

Collapse
No announcement yet.

Problem with the connection of two data sets

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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


    • #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


      • #4
        Can you show me this in screenshot?

        Comment


        • #5
          Click image for larger version

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

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

          Comment


          • #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


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

              Comment


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

                Comment


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

                  Click image for larger version

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

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

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

                  Comment


                  • #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


                    • #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...
                      X