Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

USD Open_CRM_Page: pass form parameters in extraqs

Posted on by 517

Does the CRM Page's "Open_CRM_Page" action support passing form parameters to fill fields on the form, and also custom parameters?

My action call data looks like this:

LogicalName=contact

Id=<guid>

param_0="test"

firstname="Kyle"

The record opens fine and I can see that the [[<Controlname>.url]] replacement parameter does NOT include my extra data parameters (regular or custom), and "extraqs=" has nothing behind.

*This post is locked for comments

  • ansrikanth Profile Picture
    ansrikanth 3,115 on at
    RE: USD Open_CRM_Page: pass form parameters in extraqs

    Hi Kyle

    You are right, as the name it self says, Open_Crm_page will open an existing record and It would only accept the GUID of the record and the entity name. New_CRM_page will allow you to open a brand new record and then you can add the parameters so that it can fill in the details automatically.

  • kyleknab Profile Picture
    kyleknab 517 on at
    RE: USD Open_CRM_Page: pass form parameters in extraqs

    Hi Dynamica, no worries, I solved it.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: USD Open_CRM_Page: pass form parameters in extraqs

    Hi!

    You can pass get parameters into url line.

    Can't tell you more for now without seeing the code. Can you please attach a screenshot?

    Dynamica Labs http://dynamicalabs.com/

    Disclaimer:

    Any post on this page provided "as is" without warranty of any kind and is for educational and information purposes only. We disclaim any liability arising from any reliance placed on any post.

  • kyleknab Profile Picture
    kyleknab 517 on at
    RE: USD Open_CRM_Page: pass form parameters in extraqs

    After digging in some more, apparently Open_CRM_Page doesn't accept extra parameters (like New_CRM_Page does) and pass them to the opened CRM record as default values.

    On a related noted, ignoring USD, apparently passing URL parameters to the form of an existing record doesn't automatically do anything.  An existing record will ignore default values provided in the parameter string.  MSDN doesn't explicitly state this, but implies it by saying "When you open a new form by using the URL address..." (emphasis added).  The URL parameters can still be present (including custom parameters), but you have to read and manipulate them yourself in JScript using Xrm.Page.context.getQueryStringParameters().

    Bringing it full circle...USD's "Open_CRM_Page" doesn't pass any parameters that I could then read using getQueryStringParameters().  :(

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: USD Open_CRM_Page: pass form parameters in extraqs

    Hi!

    var parameters = {};

    parameters[“title”] = “Fill in the title here”;

    parameters[“customerid”] = custGuid;

    parameters[“customeridname”] = custFullName;

    parameters[“customeridtype”] = “contact”;

    Xrm.Utility.openEntityForm(“incident”, null, parameters);

    Where Incident - schema name entity

    Not sure that it is possible to put custom parameter into lookup

    Dynamica Labs http://dynamicalabs.com/

    Disclaimer:

    Any post on this page provided "as is" without warranty of any kind and is for educational and information purposes only. We disclaim any liability arising from any reliance placed on any post.

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans