How to get the value of field using current user . In 1st table i have 2 fields emp id,user .In 2nd table i have 2 fields like emp id , departement , how to get the value of 1 table emp id into 2 table emp id using current user in 1st table
How to get the value of field using current user . In 1st table i have 2 fields emp id,user .In 2nd table i have 2 fields like emp id , departement , how to get the value of 1 table emp id into 2 table emp id using current user in 1st table
Hi Sumedha,
I am assuming that you want to create a record of table 2 by fetching the empid from table 1 where user is the current user.
You can acheive this by making a query to get the empid from table 1 where user is current user in many ways :-
e.g Fetchxml query, Queryexpression , LinQ in C#
or
Xrm.WebApi.retrieveMultipleRecords in javascript.
Please mark as verified if the answer is useful.
Hi,
Have you tried web api:
Use the Microsoft Dynamics 365 Web API | Microsoft Docs
If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.
Best Regards,
Frank Gong
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156