## AssignCustomer
Order | Pipe | Description |
100 | AssignCustomer | If customer is not yet assigned to user then assign customer. |
## CreateGetAccountResult
<table class="TableStyle-Borders" style="margin-left: 0; margin-right: auto; width: 100%;" data-cellspacing="0"> <colgroup> <col style="width: 33%" /> <col style="width: 33%" /> <col style="width: 33%" /> </colgroup> <thead> <tr class="header TableStyle-Borders-Head-Header1"> <th class="TableStyle-Borders-HeadE-Regular-Header1">Order</th> <th class="TableStyle-Borders-HeadE-Regular-Header1">Pipe</th> <th class="TableStyle-Borders-HeadD-Regular-Header1">Description</th> </tr> </thead> <tbody> <tr class="odd TableStyle-Borders-Body-Row1"> <td class="TableStyle-Borders-BodyE-Regular-Row1">100</td> <td class="TableStyle-Borders-BodyE-Regular-Row1">CreateGetAccountResult</td> <td class="TableStyle-Borders-BodyD-Regular-Row1"><p>Creates GetAccountResult object and fills next fields:</p> <p>UserProfile - uses parameter.UserProfile</p> <p>IsSubscribed - checks if parameter.UserProfile.Email is subscribed to list</p> <p>IsLockedOut - uses parameter.UserProfile.</p> <p>IsDeactivatedCanApproveOrders - checks that user has one of next roles: Administrator or Buyer3</p> <p>CanViewApprovalOrders - checks that user has one of next roles: Administrator, Buyer1, Buyer2, Buyer3</p> <p>Role - uses first user standard role</p></td> </tr> <tr class="even TableStyle-Borders-Body-Row1"> <td class="TableStyle-Borders-BodyB-Regular-Row1">200</td> <td class="TableStyle-Borders-BodyB-Regular-Row1">CopyCustomPropertiesToResult</td> <td class="TableStyle-Borders-BodyA-Regular-Row1">Copies custom properties from parameter.UserProfile to createdGetAccountResult.</td> </tr> </tbody> </table>
## GetCustomLandingPage
Order | Pipe | Description |
100 | GetCustomLandingPage | Returns custom landing page for specified customer. If customer is not specified then returns null. If customer CustomLandingPage property is blank then returns empty string. Else returns customer CustomLandingPage property. If user located at microsite then microsite prefix will be added to page url. |
## GetRoleName
Order | Pipe | Description |
100 | GetRoleName | Returns first standard role which user has. If user has no standard roles then returns empty string. |
## GetRoles
<table class="TableStyle-Borders" style="margin-left: 0; margin-right: auto; width: 100%;" data-cellspacing="0"> <colgroup> <col style="width: 33%" /> <col style="width: 33%" /> <col style="width: 33%" /> </colgroup> <thead> <tr class="header TableStyle-Borders-Head-Header1"> <th class="TableStyle-Borders-HeadE-Regular-Header1">Order</th> <th class="TableStyle-Borders-HeadE-Regular-Header1">Pipe</th> <th class="TableStyle-Borders-HeadD-Regular-Header1">Description</th> </tr> </thead> <tbody> <tr class="odd TableStyle-Borders-Body-Row1"> <td class="TableStyle-Borders-BodyB-Regular-Row1">100</td> <td class="TableStyle-Borders-BodyB-Regular-Row1">GetRoles</td> <td class="TableStyle-Borders-BodyA-Regular-Row1"><p>Returns GetRolesResult object with next fields:</p> <ul> <li>StandardRoles - list of all standard roles. It includes Administrator, also if budged management is enabled it includes Buyer1, Buyer2 and Buyer3, also if requisitions is enabled then it includes Requisitioner</li> <li>RolesThatCanBeApprovers - Administrator, Buyer3</li> <li>RolesThatRequireApprover - Requisitioner, Buyer1, Buyer2</li> <li>RolesThatCanViewApprovals - Administrator, Buyer1, Buyer2, Buyer3</li> <li>RolesThatCanViewUsers - Administrator</li> <li>RolesThatCanAddUsers - Administrator</li> <li>RolesThatCanUpdateUsers - Administrator</li> </ul></td> </tr> </tbody> </table>
## SetRole
Order | Pipe | Description |
100 | SetRole | Sets role to user. A user can only be assigned to one standard role, so if the role to set is one of the standard roles removes the current standard role and adds the new one. |
## UnassignCustomer
Order | Pipe | Description |
100 | UnassignCustomer | Unassigns specified customer from specified user if user has this customer. |