latest Post

Unlocking “add new” on subgrid for read-only records

We had an issue earlier in the week with one of our clients. A custom entity had been created with a one to many relationship to an Opportunity.

The user wanted to be able to add information to the related entity from within the context off the Opportunity record even when the record was marked as "won" making the record read only.

However, out of the box and for reasons I am unsure of CRM hides the "add new button" on related entities when the related record is in a read only state. This has always seemed strange to me because CRM does not stop you from creating the record from the parent record and manually using the lookup field to map to the child record.

Anyway our end user found it difficult to locate the correct Opportunity in the lookup field and wanted to be able to do this from within the context of the Opportunity record.

Once again the brilliant RibbonWorkBenchEditor from the guys at develop1 comes to the rescue.

We can simply use the editor to locate the "add new" button on the entities subgrid ribbon and remove the EntityFormEnabled Rule from the button and republish.



For those of you who need step by step help on doing this please see this brilliant post by Alex Shlega. https://community.dynamics.com/crm/b/exploringdynamics365/archive/2017/08/11/unlocking-add-new-on-the-subgrids-for-read-only-records


Recommended Posts × +

1 comments:

  1. I really want to thank Dr Emu for saving my marriage. My wife really treated me badly and left home for almost 3 month this got me sick and confused. Then I told my friend about how my wife has changed towards me. Then she told me to contact Dr Emu that he will help me bring back my wife and change her back to a good woman. I never believed in all this but I gave it a try. Dr Emu casted a spell of return of love on her, and my wife came back home for forgiveness and today we are happy again. If you are going through any relationship stress or you want back your Ex or Divorce husband you can contact his whatsapp +2347012841542 or email emutemple@gmail.com website: Https://emutemple.wordpress.com/ Https://web.facebook.com/Emu-Temple-104891335203341

    ReplyDelete