How to automatically set the accountId?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lj4353
    Senior Member
    • Nov 2023
    • 114

    How to automatically set the accountId?

    I have created two entities, RequestManagement and Requestlist, with a one-to-many relationship between them. Both entities have a link named "accountId." I would like to automatically set the accountId of a Requestlist record to match the accountId of the corresponding RequestManagement when creating the Requestlist record.
  • abidoss
    Senior Member
    • Mar 2023
    • 230

    #2
    accountId.RequestManagement = accountId.Requestlist

    Comment

    • rabii
      Active Community Member
      • Jun 2016
      • 1250

      #3
      Originally posted by lj4353
      I have created two entities, RequestManagement and Requestlist, with a one-to-many relationship between them. Both entities have a link named "accountId." I would like to automatically set the accountId of a Requestlist record to match the accountId of the corresponding RequestManagement when creating the Requestlist record.
      set this code in formula of the RequestList entity: make sure that you use the correct link field name between the two entities requestManagment ???

      PHP Code:
      if (requestManagment.accountId) {
          accountId = requestManagment.accountId;
      }
      Rabii
      Web Dev

      Comment

      Working...