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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans