Quantcast
Channel: Vishy
Viewing all articles
Browse latest Browse all 27

How to figure out if the current user is a collections agent?

$
0
0

In my previous post i had asked what does the following X++ code return?

DirPartyRelationship::find(DirRelationshipTypeTable::findBySystemType(DirSystemRelationshipType::TeamMember).RecId, CustCollectionsAgent::collectionsTeam().RecId, DirPersonUser::find(curUserId()).PersonParty));

This would return a record that would indicate if the current user is a collections agent. However there is another way to get the same result (much simpler infact): CustCollectionsAgent::findCurrentAgent()

The business need for this was as follows. We did some modifications to the customer collections agent screen and based on the new properties we want to enable/disable functionality in a custom form we created.



Viewing all articles
Browse latest Browse all 27

Trending Articles