Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

DirPartyQuickCreateForm datasource LogisticsPostalAddress

Posted on by 32

Hi i have Problem to set a few fields mandatory. For example LogisticsPostalAddress.Street

I tied to do it on datasource form bu isnt working. Last thing what i was tring is od the table

[ExtensionOf(tableStr(LogisticsPostalAddress))]
final class LogisticsPostalAddressTable_ARG_Extension
{

void initValue()
{
next initValue();

this.setMandatoryFields();

}

void setMandatoryFields()
{
FormDataSource dataSource = this.dataSource();

/dataSource.object(fieldNum(LogisticsPostalAddress, Street)).mandatory(true);
/dataSource.object(fieldNum(LogisticsPostalAddress, StreetNumber)).mandatory(true);
}

But this isnt working when i create custotomer this field still cut be empty and saved.

Know somebody so kind of issue and can help?

  • Rajmund Profile Picture
    Rajmund 32 on at
    DirPartyQuickCreateForm witt datasource LogisticsPostalAddress

    Hi i have Problem to set a few fields mandatory. For example LogisticsPostalAddress.Street

    I tried to do it on datasource form but isnt working. Last thing what i was triyng is on the table

    [ExtensionOf(tableStr(LogisticsPostalAddress))]
    final class LogisticsPostalAddressTable_ARG_Extension
    {

    void initValue()
    {
    next initValue();

    this.setMandatoryFields();

    }

    void setMandatoryFields()
    {
    FormDataSource dataSource = this.dataSource();

    /dataSource.object(fieldNum(LogisticsPostalAddress, Street)).mandatory(true);
    /dataSource.object(fieldNum(LogisticsPostalAddress, StreetNumber)).mandatory(true);
    }

    But this isnt working when i create customer, this field still cut be empty and saved.

    Know somebody so kind of issue and can help?

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans