Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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,
artAccountManager lookup column to SMART Audit Auditors table
artRep lookup column to SMART Audit Auditors table
OwnerId owner datatype column system required column
artCustomer lookup looking to Customers Vtable
Write JavaScript to change ownership and define Account Manager and Rep based on related D customer. If D Customer is not assigned, make Account manager Owner.
If assigned,
Account manager Customers V 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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started