Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

How to get the value of field using current user .

Posted on by 142

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

  • Suggested answer
    JyotiYadav Profile Picture
    JyotiYadav 40 on at
    RE: How to get the value of field using current user .

    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.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to get the value of field using current user .

    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans