Announcement

Collapse
No announcement yet.

Auto Create a Portal User from an Account Entity

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

  • Auto Create a Portal User from an Account Entity

    I would like to auto create a user/portal user from an account entity. so that any time a account is created it automatically creates a portal user and assigned the account to the portal user so that any data that is attached to the account the portal user will have access to through the portal user login area. So far I have been able to create the portal user using a workflow but I can't seem to get the account to attach to the user.
    my workflow is as follows:
    Target Entity is Account
    Condition:
    When accountName is not empty
    Actions:
    Create Record -> User
    Fields:
    FirstName=AccountName
    Email=Email
    phone=phone
    isPortaluser=True
    portal=AccountPortal
    isActive=True
    Formula:
    userName = targetEntity\attribute('emailAddress');

    $accountIds = list();
    $accountNames = list();

    $accountIds = array\push($accountIds,targetEntity\attribute('id' ));
    $accountNames = array\push($accountNames,targetEntity\attribute('n ame'));

    accountsIds = list($accountIds);
    accountsNames = list($accountNames);


    Also "Link with target Entity through Relationships" has Account selected

    So the Idea is that I could add the user 'id' onto the 'accountsIds' array and the account 'name' onto the 'accountsNames' array

    Any Ideas?
    Last edited by alexmiller; 07-17-2018, 06:00 PM.

  • #2
    subscribe

    Comment

    Working...
    X