web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Assigning role for contact information

(0) ShareShare
ReportReport
Posted on by 18
Hi all,
 
Can someone please explain how role/purpose is assigned to a /Contact/ created in /Contact information/ tab of a customer.
 
In the Customer form, under /Contact information/ the form displayed is /LogisticsElectronicInfoGrid/ and on clicking advanced button /LogisticsElectronicInfo/ form opens where we update the Purpose(role).
In /LogisiticsElectronicInfo/ form there is no /LgisticsElectronicRoles/ data source where the Purpose(role) is stored.
 
I am unable to figure out how this process works as I need to replicate this feature in /LogisiticsElectronicInfoGrid/ form too, as the requirement given is to update the role directly when /Add/ button is clicked.
 
Thanks in advance.
 
  • Verified answer
    GirishS Profile Picture
    27,843 Moderator on at
    Hi Anand Krishna,
     
    Under Customer >> Contact information >. Form name is LogisticsContactInforGrid >> If you click on Advanced button - Opened form will be LogisticsContactInfo.
    Refer to the written method of LogisticsElectronicAddress DataSource on form LogisticsContactInfo. Purpose field is a multiselect lookup field.
    So, in the written method they are using one class 'LogisticsEntityContactInfoFormHandler' - Object name 'contactInfoForm' - Using this class they are calling the contactInfoForm.setRoles (Argument will be values given in the Purpose field using rolesCtrl.get() which will return container) and write method. 
    Inside the write method they are calling the AOT map 'LogisticsEntityLocationRoleMap::createEntityLocationRoles' - Inside this method they are inserting the record into the map - On the 'LogisticsEntityLocationRoleMap' >> Under mapping node you can see that LogisticsElectronicAddressRole table -So the record will be created in that table if the record is inserted in the map I guess.
    I think this is the process.
     
    Thanks,
    Girish S.
  • AnandKrishna Profile Picture
    18 on at
    @Girish Thanks for the solution, got it work with help of your reference

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 366

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 360 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans