web
You’re offline. This is a read only version of the page.
close
Skip to main content
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.
 
I have the same question (0)
  • Verified answer
    GirishS Profile Picture
    27,827 Moderator on at
    Assigning role for contact information
    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
    Assigning role for contact information
    @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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 776 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 606 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 402 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans