Question: I have a model driven apps dataverse table in SMART Audit Customer with columns, art _ AccountManager ( lookup column to SMART Audit Auditors table

I have a model driven apps dataverse table in SMART Audit Customer with columns,
art_AccountManager (lookup column to SMART Audit Auditors table)
art_Rep (lookup column to SMART Audit Auditors table )
OwnerId (owner datatype column system required column)
art_Customer (lookup -looking to Customers V3table).
Write JavaScript to change ownership and define Account Manager and Rep based on related D365 customer. If D365 Customer is not assigned, make Account manager = Owner.
If assigned,
Account manager - Customers V3- EMPLOYEERESPONSIBLENUMBER
Sales Rep - 'Customer postal addresses' - GROSALESREPGPOPERSONNELNUMBER
Use address where Primary = true
Record ownership:
First use Account Manager, else Sales Rep
In JS, check for nulls for Account manager and rep. If both are null, can't reassign the record.
 I have a model driven apps dataverse table in SMART Audit

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!