web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to get form name and formid in a single query?

(0) ShareShare
ReportReport
Posted on by 6

Hello All Experts,

Can anyone help me in finding the formname and formid in a single query in on-premise system.

i can query in database as well.

*This post is locked for comments

I have the same question (0)
  • joman Profile Picture
    617 on at

    Good day.

    your query:

    select FormId, Name, FormXml --If you need FormXml
    from SystemForm

  • EmployeeOcta Profile Picture
    6 on at

    Hello Joman,

    How can i write a join between opportunity entity and this form, i din't find any relationship of entityform in the above table.

  • Suggested answer
    joman Profile Picture
    617 on at

    select FormId, Name, FormXml --If you need FormXml

    from SystemForm

    where ObjectTypeCode = 3

    or:

    select FormId, SystemForm.Name FormName, Entity.Name EntityName
    from SystemForm
    left join Entity on Entity.ObjectTypeCode = SystemForm.ObjectTypeCode
        and Entity.OverwriteTime = cast('' as datetime)

  • tpeschat Profile Picture
    4,930 on at

    Hi,

    in case you are only interested for a single form and you would not have access to database via SQL Management Studio, you could open this form in the form editor and click on F11.

    The form id should be part of the url like

    formId%3d1FED44D1-AE68-4A41-BD2B-F13ACAC4ACFA%26action

    ...

    the form id is between %3d and %26, so 1FED44D1-AE68-4A41-BD2B-F13ACAC4ACFA in my example. The form name you can anyway see in the form editor as well.

    Hth Thomas

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans