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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / OpenForm with duplicat...
Power Apps
Answered

OpenForm with duplicate parameter names (Model-driven)

(0) ShareShare
ReportReport
Posted on by 311

In my model-driven app, I'm trying to use Xrm.Navigation.openForm, passing in parameters to set some field values.  One of the fields is a "customer" type field named "Payee" whose system name is "cr01_payee".  I understand that to set a value for customer fields, you add 3 parameters, like this:

 

formParameters["cr01_payee"] = result._cr01_payee_value;
formParameters["cr01_payeename"] = result.cr01_Payee_account.name;
formParameters["cr01_payeetype"] = "account";

 

This works great until I add another parameter for a field named "Payee Type" who's system name is "cr01_payeetype".  The entry for this field uses the same parameter name as the 3rd entry for the Payee field and causes errors:

 

formParameters["cr01_payeetype"] = 100000001;  // Choice field

 

Without creating new fields with different systemnames, any one know a way I can set both values in the parameters without the conflict?

I have the same question (0)
  • Verified answer
    cchannon Profile Picture
    4,702 Moderator on at

    Nope. This is one among many reasons why I have everyone on my dev teams suffix every lookup field with "id" so the usage becomes unambiguous.

     

    "cr01_payeeid";"cr01_payeeidname";"cr01_payeeidtype";"cr01_payeetype"

     

    Some teams I've seen also suffix other field types, such as "code" after every optionset and "num" after every numerical, though I feel that with the exception of lookups this is not generally a meaningful value-add.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 422

#2
WarrenBelz Profile Picture

WarrenBelz 380 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 325 Super User 2025 Season 2

Last 30 days Overall leaderboard