[Formula Question] Link ParentID from record\create

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • esforim
    Active Community Member
    • Jan 2020
    • 2204

    [Formula Question] Link ParentID from record\create

    I been playing with Formula more and more and growing to appreciate the possibility it can do! Stuck at another issue and documents don't seem to answer this question.

    Anyway I use the "record\create" formula and upon doing so I think I can a ID if of the record that is created, I want to link the ID to the Parent. How do I do this?

    Here is a sample code for my test but it all empty at the moment.

    Code:
    record\create('Meeting', 'name', $meetingNAME, 'dateStart', meetingDate, parentType, entity\setAttribute('parentType', 'Case'), 'parentId', id)
    As you can see I try setting it to ParentType "Case" and linking the parentID to my current (Case entity ID).
    I also tried this variation as well.

    Code:
    record\create('parentType', 'Case', 'parentId', id)
    Not sure what else I can try. Thank you.​
  • esforim
    Active Community Member
    • Jan 2020
    • 2204

    #2
    EDIT: Look like I manage to do it with this code! Lucky me, was trying 10 minutes, post the thread and try again and lady Luck smile.

    'parentType', entity\setAttribute('parentType', 'Case'), 'parentId', id)

    Comment

    Working...