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

Announcements

News and Announcements icon
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,363 on at

    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

    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,363 on at

    Hi Muhammad Haaris,

    Please make sure that the user has the proper privileges.

  • MUHAMMAD HAARIS Profile Picture
    770 on at

    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

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 341 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 312

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 262 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans