Announcement

Collapse
No announcement yet.

[Formula Question] Link ParentID from record\create

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

  • [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.​

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