Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Apply business required logic to Web resource

Posted on by Microsoft Employee

Hi guys,

I have a web resource which Display a field in a different way (with Auto complete)
Now I want that, if the database field, where the value is to be saved, a Business required field, that my web resource also act like such.

How to do this ?

Thanks.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Apply business required logic to Web resource

    My web resource is dynamic. So I can enter in the parameter the target field name.

    Since its generic, I want that my web resource also handle the business required logic, so if the target field is a business required, that my web resource handle it as such.

  • Surmeet Singh Profile Picture
    Surmeet Singh 3,075 on at
    RE: Apply business required logic to Web resource

    Hi Donny,

    What we get from your question is that you have created a web resource and in that a field is there which has auto complete feature and that value you are storing on another field which is on CRM form. Now you want to make the field as mandatory in the web resource so that before saving the form it should validate if the field is mandatory then not to allow saving.

    Please also clarify if you need this for create or for update.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Apply business required logic to Web resource

    What if the business required rule is set with a business rule ? Are there no property on xrm.page i can use for this ?

  • Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Apply business required logic to Web resource

    Hello,

    You should be able to implement this through java script you can read metadata information of the field and check if it is required, make your field required. you can use SAOP call to get metadata.

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