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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

The specified record query failed to apply and the form can't be opened.

(0) ShareShare
ReportReport
Posted on by 770

Hi Experts,

I am getting the error "The specified record query failed to apply and the form can't be opened" when I click the Custom alerts email link. I am facing the error only for Activities alerts for Change base alerts.

1680.pastedimage1598938239952v1.png

When I do debug, get to know (FormRun _formRunInstance)parameter has QueryRun variable(query) which is not set with the record in where clause.

Any help would be appreciated.

Thanks.

I have the same question (0)
  • WillWU Profile Picture
    22,361 on at
    RE: The specified record query failed to apply and the form can't be opened.

    Hi Muhammad Haaris,

    Could you please provide the code that create the link.

    You have to set the generator.EncryptRequestQuery to true, the encryption is mandatory for data security reasons and you cannot just remove it to make query string shorter, it will fall into an error and not open.

    Refer to :docs.microsoft.com/.../create-deep-links

  • MUHAMMAD HAARIS Profile Picture
    770 on at
    RE: The specified record query failed to apply and the form can't be opened.

    Thanks for your response Will.

    Actually the Deep link[Email link] has been generated through Custom alerts rule with Change based alerts job[System administration].

    pastedimage1598945513344v1.pngpastedimage1598945563132v2.png

    But I have tried to create Deep link from the mentioned blogs. That's working fine. Facing issue with Alerts based deep links only for Activities Form

  • WillWU Profile Picture
    22,361 on at
    RE: The specified record query failed to apply and the form can't be opened.

    Hi Muhammad Haaris,

    Please make sure that the user has the proper privileges.

  • MUHAMMAD HAARIS Profile Picture
    770 on at
    RE: The specified record query failed to apply and the form can't be opened.

    Hi Will,

    I have tried with System Administrator role also. It's not working.

    community.dynamics.com/.../795923

    community.dynamics.com/.../generating-deep-links-for-d365-fo-forms-and-records

    Also tried above two solutions too. No luck.

    Thanks.

  • Pranav Gupta Profile Picture
    145 on at
    RE: The specified record query failed to apply and the form can't be opened.

    Hello Haaris,

    Did you find any solution to the issue mentioned, I am also facing the same issue, I have a custom form, for which an email is getting generated by workflow cycle to a particular user with a link to the record to open the form, but gets the error "

    The specified record query failed to apply and the form can't be opened.".

    I tried by modifying the "Allow Root Navigation" and "Copy Caller Query" properties of the display menu item to YES, but it didn't worked.

    I also generated a new link using the below blog code, but when pasted the generated link, get's the same error.

    Blog: devblog.sertanyaman.com/.../generating-deep-links-for-d365-fo-forms-and-records

    Any help would be great.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 683 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 563 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 398 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans